开发者

Shorten function names in profling results with valgrind+kcachegrind

I work usually with valgrind+kcachegrind to profile C++ codes. A new code I am working with uses very long function names, so that the graphical results are a mess. I wonder how can one s开发者_JS百科horten the function names so that they fit in a small box.


This is sort of a dirty workaround... you could be to write a script that does a find and replace for a list of function names for the files generated by Valgrind and then use kcachegrind to visualize the data.

Maybe you could shorten the function names in the code by using namespaces?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜