-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
dotnet/coreclr
#26897Labels
area-Diagnostics-coreclrenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionsos-linuxLinux OS (any supported distro)Linux OS (any supported distro)
Milestone
Description
Linux uses the perf tools to profile application. The linux 4.10 kernel added support for a perf jitdump format.
It has allows better JIT support for perf. Specifically allowing adding:
- native code so
perfcan show disassembly of JIT functions. - adding debug info to support source line annotation.
- adding unwind info to better support stack unwind.
I believe this will also allow us to properly support ready to run images.
The app must
- create the jitdump file. Specification
- Inform
perf injectof its presence by callingmmapwith the filename. - Add
JIT_CODE_LOADrecords - Optionally add
JIT_DEBUG_INFOrecords - Optionally add
JIT_CODE_UNWINDING_INFOrecords
It is used like this
perf record <app>
perf inject --jit
perf report
/cc @dotnet/dotnet-diag
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-Diagnostics-coreclrenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionsos-linuxLinux OS (any supported distro)Linux OS (any supported distro)