From: Joel M. <jo...@sa...> - 2018-01-30 17:00:58
|
Hi, I'm a new Valgrind / Callgrind user, and I'm trying to perform some profiling of my code at source level, per C++ line of code. My code is running on Android platform, it was built under ndk-build with debug information included (-g option) I activated valgrind with the following command in adb shell : valgrind --tool=callgrind ... It successfully activated my code and generated as output an 898 Kbyte file - callgrind.out.6265 I then ran callgrind_annotate with the following command : callgrind_annotate --auto=yes callgrind.out.6265 > callgrind.out.txt When reading callgrind.out.txt I could find some of my code - actually 1 function, with its correct function name, under "Ir file:function", with a count of 4,262,514 But no code-line level annotation was provided for this function (nor for any other function). When I tried to run callgrind_annotate without the --auto=yes option but explicitly specifying my source file xyz.cpp, I got the following output : No information has been collected for xyz.cpp Does anyone have a clue regarding what can cause this behavior ? Thanks, Joel |