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.
You can narrow the labels using gprof2py. Is this what you were looking for?