Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate file layout for profiles and flame graphs #326

Merged
merged 6 commits into from
Mar 18, 2021

Conversation

wolfs
Copy link
Member

@wolfs wolfs commented Mar 17, 2021

Currently, the JFR profiler will generate a deeply nested structure of flame graphs, while async profiler puts all the flame graphs in one directory. We now consolidate this to end up with all the flame graphs in the scenario output directory:

├── 5.2.1-allocation-raw-flames.svg
├── 5.2.1-allocation-raw-icicles.svg
├── 5.2.1-allocation-raw-stacks.txt
├── 5.2.1-allocation-simplified-flames.svg
├── 5.2.1-allocation-simplified-icicles.svg
├── 5.2.1-allocation-simplified-stacks.txt
├── 5.2.1-cpu-raw-flames.svg
├── 5.2.1-cpu-raw-icicles.svg
├── 5.2.1-cpu-raw-stacks.txt
├── 5.2.1-cpu-simplified-flames.svg
├── 5.2.1-cpu-simplified-icicles.svg
├── 5.2.1-cpu-simplified-stacks.txt
├── 5.2.1-monitor-blocked-raw-flames.svg
├── 5.2.1-monitor-blocked-raw-icicles.svg
├── 5.2.1-monitor-blocked-raw-stacks.txt
├── 5.2.1-monitor-blocked-simplified-flames.svg
├── 5.2.1-monitor-blocked-simplified-icicles.svg
├── 5.2.1-monitor-blocked-simplified-stacks.txt
└── 5.2.1.jfr

We also include the event and the type in the file names for async profiler, so those will be the same as well.

E.g. like:
├── 5.2.1-allocation-raw-flames.svg
├── 5.2.1-allocation-raw-icicles.svg
├── 5.2.1-allocation-raw-stacks.txt
├── 5.2.1-allocation-simplified-flames.svg
├── 5.2.1-allocation-simplified-icicles.svg
├── 5.2.1-allocation-simplified-stacks.txt
├── 5.2.1-cpu-raw-flames.svg
├── 5.2.1-cpu-raw-icicles.svg
├── 5.2.1-cpu-raw-stacks.txt
├── 5.2.1-cpu-simplified-flames.svg
├── 5.2.1-cpu-simplified-icicles.svg
├── 5.2.1-cpu-simplified-stacks.txt
├── 5.2.1-monitor-blocked-raw-flames.svg
├── 5.2.1-monitor-blocked-raw-icicles.svg
├── 5.2.1-monitor-blocked-raw-stacks.txt
├── 5.2.1-monitor-blocked-simplified-flames.svg
├── 5.2.1-monitor-blocked-simplified-icicles.svg
├── 5.2.1-monitor-blocked-simplified-stacks.txt
├── 5.2.1.jfr
└── profile.log
@wolfs wolfs self-assigned this Mar 17, 2021
Copy link
Contributor

@blindpirate blindpirate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for doing this!

@wolfs wolfs added this to the 0.17.0 milestone Mar 18, 2021
@wolfs wolfs merged commit b16deae into master Mar 18, 2021
@wolfs wolfs deleted the wolfs/file-layout branch March 18, 2021 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants