KDAB / hotspot

The Linux perf GUI for performance analysis.
4.16k stars 257 forks source link

Disassembly view does not show include files #607

Open GitMensch opened 8 months ago

GitMensch commented 8 months ago

Describe the bug Disassembly always shows the "main source" of the function, not the include files.

To Reproduce Steps to reproduce the behavior:

  1. have a function with quite some performance data, move the parts that are more heavy to an include file (for example in a plain C header) and include that [the function itself has code in the source file], then record
  2. go to 'caller / callee' -> see the function and in the lower right the include file with the costs shown correctly in the header
  3. click on 'Disassembly'
  4. don't see the header, but the source where the function is contained in, with no attribution in the source either; but the disassembly showing the parts

Expected behavior If clicked on "Disassembly" with an explicit source reference (= on the location pane), show that (the perf recording and perfparser obviously has the exact source line reference).