= sar {{{ $ sar -u ALL -P ALL -f foo.sar }}} = perf 5秒間プロファイルを取得 {{{ # perf record -a -g -- sleep 5 }}} {{{ # perf report }}} で表示。特定のCPUを指定するには、-Cを使う。 {{{ # perf report -C 22 }}} == 解析の可視化 FlameGraphを使おう。めちゃ便利! * http://www.brendangregg.com/flamegraphs.html