Profiling - pump-io/pump.io GitHub Wiki
#debian unstable see:http://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html
apt-get install linux-tools-3.16 sudo apt-get install linux-tools-3.16 perf record -F 99 -p -g -- sleep 30
or if you have multiple pids:
perf record -F 99 -p -p -g -- sleep 30
and then exercise your app.