brendangregg/FlameGraph — pull request #3 by davepacheco (2012-03-01 20:37:01+00:00)
Title: handle C++ function names better

This change does two things:

* Escapes XML meta-characters while emitting the SVG. You need this because C++ function names can have an "&".
* Removes function and template arguments, as long as they're not one of the first two characters of the function name. This exception exists because the Node ustack helper emits lines with "<<" and "((" prefixes.