On Fri, Jan 22, 2016 at 7:43 PM, Raghavendra Talur <rtalur@xxxxxxxxxx> wrote:
HI All,I am sure there are many tricks hidden under sleeves of many Gluster developers.I realized this when speaking to new developers. It would be good have a searchable thread of such tricks.Just reply back on this thread with the tricks that you have and I promise I will collate them and add them to developer guide.Looking forward to be amazed!Thanks,Raghavendra Talur
I will start.
How to get a good visualization of performance data.
* cd into clone dir
* run the program you are interested to take perf of
* perf record -F 800 -a -p <PIDOFPROG> -g -- sleep 60
* perf script | ./stackcollapse-perf.pl > out.perf-folded
* ./flamegraph.pl out.perf-folded > perf-kernel.svg
* view the svg file created in browser
A sample of what you would get is attached.
Attachment:
rpc2.svg
Description: image/svg
_______________________________________________ Gluster-devel mailing list Gluster-devel@xxxxxxxxxxx http://www.gluster.org/mailman/listinfo/gluster-devel