开发者

first function unknown

I am doing first steps with KCachegrind/Cachegrind. I run Cachegrind on machine A then I moved the output files on machine B where I have KCachegrind installed.

I don't know why but I have always first function displayed as (unknown) and it is bad because I have there the 19.46 of the usage as displayed in the picture. What I am doing wrong? Is the output file supposed to have all ne开发者_开发百科cessary information?

  1. I am using compilation flag -g is it enough? I would like to use the ptimized version by the way but I don't know if it works.
  2. Could it be that it is best if I run Kcachegrind on the same machine where I do my profiling?

first function unknown


I would check when this 'unknown' function is called in the lifetime of you program. If the unknown function is called before main then its not your code and you shouldn't really worry about it. If its after main then it still might not be your code, but will take some more investigating.


Are you linking the debug version of all libraries? If not, you will not see where a function call ends.

  1. Yes -g is enough to get debug symbols in your library. If you want to debug something, it is better to use no optimization.
  2. If the environment is the same, it shouldn't matter.


Is the Machine A and Machine B of same architecture i.e. x86?

There would be issues if you don't have same architecture as Kcachegrind will not have information to a function which is not available in the current machine.

Code Profiler for ARM

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜