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

Option jfrsync breaks jfr2flame with to/from params #881

Closed
petrbouda opened this issue Jan 23, 2024 · 2 comments
Closed

Option jfrsync breaks jfr2flame with to/from params #881

petrbouda opened this issue Jan 23, 2024 · 2 comments
Labels

Comments

@petrbouda
Copy link

petrbouda commented Jan 23, 2024

If I generate JFR output with:
-agentpath:/libasyncProfiler.so=start,event=ctimer,alloc,jfrsync=default,cstack=vm,file=/with-jfrsync.jfr
then I the converter output jfr2flame is empty.
java -jar converter.jar jfr2flame /with-jfrsync.jfr cpu.html --from 10000 --to 50000 (from 10sec to 50sec)

without jfrsync=default it works

@apangin
Copy link
Collaborator

apangin commented Jan 24, 2024

Thank you for the report.
jfr2flame did not handle recordings with heterogeneous chunks correctly.
The workaround was to split the recording into different chunks:

jfr disassemble --max-chunks 1 recording.jfr

I pushed the fix.

@apangin apangin added the bug label Jan 24, 2024
@petrbouda
Copy link
Author

That was quick! 🙂 thanks a lot!

@apangin apangin closed this as completed Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants