FlameGraph
FlameGraph copied to clipboard
Include last stack in perf collapser
This also re-generates all the perf collapse files to account for the missing stack in each one.
r? @brendangregg
Fixes #230.
Gentle ping on this @brendangregg
Does perf ever emit a stack without a new line? I see it exists in the tests, but I truncated those test files by hand and I think I omitted the new line by mistake. I guess the code is harmless and already documented, it just feels odd to include code that shouldn't exist.
I agree it's a little odd, but we had a user report that they saw output like that when using perf: https://github.com/jonhoo/inferno/issues/167. It could be that something else messed with the output, not sure, but seems worth handling this just in case anyway?