|
From: Avery P. <ape...@ni...> - 2004-07-14 17:03:14
|
On Wed, Jul 14, 2004 at 05:09:27PM +0100, Nicholas Nethercote wrote:
> Some truncation seems unavoidable, since C++ names can be 100+ characters,
> when templates are heavily used. I thought of having a command line
> argument to specify the truncation length, but that's pretty ugly. Also,
> large values do squeeze the plot a lot; that seems to be the way hp2ps
> (which was grabbed for Valgrind from elsewhere) works -- it wasn't
> designed for C++ :) So I don't have a good solution for this.
There two ways I can think of:
1. Remove the first part of the name, instead of the last part
2. "Squeeze" the name into a smaller number of characters by removing the
most common letters from the middle (ie. MySillyClassNa -> MySlyClsNm).
I wrote a program for this one time, and the hardest part was really the
letter-frequency table. Although I doubt you want to use a method
that's quite this weird, I can send you the source if you want :)
Have fun,
Avery
|