I'm using perf record -a --call-graph dwarf -p XXX sleep 1 to record some function calls then perf report to view that data, however it would be very helpful if I could also see source line numbers to know exactly where each function call was made. For example:
- 4.18% testbinary testbinary [.] malloc
- malloc
- 99.57% operator new(unsigned long)
+ 7.28% MyFunction()
I want to know where exactly in MyFunction() are those new operators called (without me guessing by looking at the whole function source code)
P.S.: Binary is compiled with -m64 -O2 -ggdb3