Open the way
Open the way

Reputation: 27399

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 shorten the function names so that they fit in a small box.

Upvotes: 2

Views: 292

Answers (1)

waffleman
waffleman

Reputation: 4339

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?

Upvotes: 1

Related Questions