I'm using valgrind [callgrind]
to profile a C++ executable, and KCachegrind
to display the results. However, the function names are all but unreadable due to endless template names before the actual method name. Since each class is instantiated with one fixed template value, this is purely wasteful.
Is there a way to get an output of the kind MyClass<...>::methodName()
, with literal dots in place of the template?
Asked
Active
Viewed 95 times
0

Francesco Dondi
- 1,064
- 9
- 17
-
you can refactor your code such that `...` is just a short name, though not sure if producing readable valgrind output would justify it – 463035818_is_not_an_ai Oct 19 '20 at 15:04
-
Indeed. I was hoping for a non-refactoring solution. – Francesco Dondi Oct 20 '20 at 06:46
-
Not sure if this works, but you can try replacing the long stuff with a short name from the output before opening in KCachegrind – techolic Dec 12 '20 at 15:32