开发者

Shorten function names in profling results with valgrind+kcachegrind

开发者 https://www.devze.com 2023-03-12 03:36 出处:网络
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百科

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

精彩评论

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