java: async-profiler: include method modifiers in name #570
Labels
defined-and-prioritized
Tickets that have fully defined the desired outcome & are prioritized to be developed.
enhancement
New feature or request
runtime/java
Method modifiers (
ACC_*
values such asstatic
,public
etc) are interesting and can provide useful insights for profile readers. It's easy to get them withjvmti->GetMethodModifiers
.For MVP, I'd like it this way:
--java-include-method-modifiers
, disabled by default.includemm
(mm for method modifiers).includemm
is given, we will callGetMethodModifiers
and append the data to the frame name as a prefix, in a format that would match the way it was defined in the Java file. So if we got the modifiersACC_PUBLIC
,ACC_FINAL
,ACC_STATIC
- we will addpublic static final
(maintain the same order as common in Java files), e.gpublic final String.replace(....);
(just an example).includemm
is not in use, async-profiler's behavior should not be changed at all (i.e avoid calling any new methods unless necessary).The text was updated successfully, but these errors were encountered: