You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@rorygraves and @mkeskells have contributed internal profiling to scalac to capture some MXBean statistics during compilation and report these broken down by compiler phase.
There is some overlap with the built-in profilers in JMH, but we can't easily replicate the ability to drill down by phase with the JMH profilers.
Can we have our cake (standardized JMH benchmark execution and statistics) and eat it too (per-phase stats)?
Possible solutions:
Write a custom JMH profiler that reads/parses the file written by -Yprofile and presents them in the form understood by JMH.
Modify JMH to let the benchmarked program to trigger profiler snapshots before the phase transition, providing the phase name as an extra part of the result key.
The text was updated successfully, but these errors were encountered:
the reporting from -Yprofile is pluggable, so you can write to file or an internal form that a JMH based reader could understand - csv and console are just sample outputs
-Yprofile is already running between the phases so could gather/trigger info from other JMH measures
I am not sure if you are looking to interrogate JMH based measures during a compile, or have JMH running the compile and have statistics and profile data added to the JMH report. JMH is not well suited to the latter I think, but I am not aware of what other measures we would look to gather
@rorygraves and @mkeskells have contributed internal profiling to scalac to capture some MXBean statistics during compilation and report these broken down by compiler phase.
There is some overlap with the built-in profilers in JMH, but we can't easily replicate the ability to drill down by phase with the JMH profilers.
Can we have our cake (standardized JMH benchmark execution and statistics) and eat it too (per-phase stats)?
Possible solutions:
-Yprofile
and presents them in the form understood by JMH.The text was updated successfully, but these errors were encountered: