brendangregg/FlameGraph — pull request #4 by rysto32 (2012-06-14 16:26:08+00:00)
Title: Two fixes for handling of demangled C++ symbols

Here a two small fixes that make FlameGraph handle demangled symbols better. The first uses semicolons instead of commas to separate frames in the flamegraph.pl input, so avoid an ambiguity with a frame like foo(int, int). The second escapes <> in the output after the string is truncated. Currently it truncates after escaping, and I have seen cases where the string is truncated half-way through an escape sequence, causing malformed output.