perf record -e sched:sched_process_exec -a -p $PID perf report
http://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html