KEMBAR78
An option to coarsen flame graphs by apangin · Pull Request #1018 · async-profiler/async-profiler · GitHub
Skip to content

Conversation

apangin
Copy link
Member

@apangin apangin commented Oct 10, 2024

Description

Add jfrconv --grain option to coarsen flame graphs by subsamling stack traces.
Shape of the result flame graph should be similar to the original one.

Example:

jfrconv --grain 4 source.jfr dest.html

will produce a flame graph that is 4 times smaller in number of samples.

Grain value can be fractional. E.g., to shrink a flame graph containing 314 samples to 100 samples, specify --grain 3.14

Motivation and context

There are two main use cases for the feature:

  1. Reduce flame graph size by dropping out least relevant stacks.
  2. Normalize flame graphs so that they contain a fixed number of samples.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@apangin apangin merged commit 061f03d into master Oct 10, 2024
2 checks passed
@apangin apangin deleted the coarsen branch October 10, 2024 14:21
krk pushed a commit to krk/async-profiler that referenced this pull request Oct 10, 2024
roy-soumadipta pushed a commit to roy-soumadipta/async-profiler that referenced this pull request Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant