-
Notifications
You must be signed in to change notification settings - Fork 129
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
Correctly annotate jitdump stack frames #202
Conversation
When using perf with the modern jitdump format, `perf inject` creates an ELF object for each JITted function and replaces the function entries in the recording to point to those SOs. This causes `stackcollapse-perf` to not recognise the functions as the module is no longer displayed as being the perf JIT map for the process.
Codecov Report
@@ Coverage Diff @@
## master #202 +/- ##
=======================================
Coverage 90.08% 90.08%
=======================================
Files 17 17
Lines 2239 2239
=======================================
Hits 2017 2017
Misses 222 222
Continue to review full report at Codecov.
|
Good catch! Could you please include a test case with this new format as well? |
Very happy to add some tests, but it looks like the existing test infrastructure does not test with any of the options enabled (so this would be a no-op) - so I could do with some guidance on how you'd like them added. |
Not sure I follow? The Java flamegraph test for example specifically runs with the java color palette: Lines 135 to 146 in f2f1e9a
|
Test added - I had only seen the unit tests and completely missed the integration tests 😄 |
I also just realized I linked you to the flamegraph tests 🤦 But glad you found them! |
Would you mind also updating the |
When using perf with the modern jitdump format,
perf inject
creates an ELF object for each JITted function and replaces the function entries in the recording to point to those SOs. This causesstackcollapse-perf
to not recognise the functions as the module is no longer displayed as being the perf JIT map for the process.