[Proposal] Support perf annotate with CoreCLR on Linux #13191
Labels
area-Diagnostics-coreclr
enhancement
Product code improvement that does NOT require public API changes/additions
Milestone
I'd like to use be able to use
perf
on linux to profile CoreCLR quickly and effectively to dig into JIT'd code with perf annotate (e.g. more than just flamegraphs and top functions)perf has various collection controls and knobs not directly available through the PerfCollect script, such as collecting specific HW events etc, for example:
I can get a nice report like this:
But if I try to collect the same sort of information with
perf record
& display it withperf annotate
to see where/how this is happenning inside the JIT'd code, I can't get annotation of the code generated by the JIT, since there is no executable on disk that perf can peep into withobjdump
, so perf complains, often like this, while trying to annotate JIT'd code:It appears such support could be added by providing an alternative objdump executable that can mimic objdump as far as perf is concerned with a
--objdump
argument.It would be amazing if CoreCLR could come with support of some sort for this, so that we could use the native provided tools to quickly analyze and dive into what's happening to our code.
Cc:
@brianrob
@janvorli
@adamsitnik
The text was updated successfully, but these errors were encountered: