FlameGraph icon indicating copy to clipboard operation
FlameGraph copied to clipboard

stackcollapse-perf.pl should be more memory-efficient

Open JasonGross opened this issue 2 years ago • 3 comments

I'm concerned stackcollapse-perf.pl is going to blow through my available RAM; is there any way for it to be more streaming?

image

My perf.data file is almost 9GB, the output of perf script is 158GB, so maybe the answer is just that I have to use smaller runs. But it would be nice to be able to get a flamegraph out of this.

Edit: It was mem-killed a couple minutes after making this issue.

JasonGross avatar Apr 20 '22 13:04 JasonGross

You can probably sample from your perf script output by only selecting 1/100000 data points and you should be fine.

randomstuff avatar Jul 05 '22 18:07 randomstuff

Actually, stackcollapse-perf would have to be modified to implement a non-collapsing/streaming mode in order to do that.

randomstuff avatar Jul 05 '22 19:07 randomstuff

See #286

randomstuff avatar Jul 05 '22 21:07 randomstuff