Search code examples
pythonprofilinggprof

Shorten function names in profling results with gprof2dot.py


I work usually with gprof + gprof2dot.py to profile C++ codes. A new code I am working with uses very long function names, so that the graphical results with gprof2dot.py are a mess. I wonder how can one shorten the function names so that they fit in a small box.


Solution

  • You can narrow the labels using gprof2py. Is this what you were looking for?