Most of these are correctly ignored as invalid lines by inferno-flamegraph, but some (like # duration: 695345) look enough like a valid sample to end up in the output svg. I think the original perl version correctly identifies all of them as invalid, since it uses a strict regex to parse lines.
It's fairly trivial to work around this with a sed '/^#/d', but it would be nice for austin and inferno-flamegraph to work together smoothly.
Would you accept a PR to filter out all lines which begin with # in inferno-flamegraph?
The austin Python profiler includes some metadata as "comments" in its output, e.g.:
Most of these are correctly ignored as invalid lines by
inferno-flamegraph
, but some (like# duration: 695345
) look enough like a valid sample to end up in the output svg. I think the original perl version correctly identifies all of them as invalid, since it uses a strict regex to parse lines.It's fairly trivial to work around this with a
sed '/^#/d'
, but it would be nice foraustin
andinferno-flamegraph
to work together smoothly.Would you accept a PR to filter out all lines which begin with
#
ininferno-flamegraph
?Thanks