码迷,mamicode.com
首页 > 其他好文 > 详细

tunning-Instruments and Flame Graphs

时间:2016-07-21 12:35:24      阅读:117      评论:0      收藏:0      [点我收藏+]

标签:

On mac os, programs may need Instruments to tuning, and when you face too many probe messages, you‘ll need some Flame Graphs.

      Here I introduce Brendan Gregg and his blog:   

      http://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html

      and he mestioned one guy make a Flame Graphs with Instruments:

      https://schani.wordpress.com/2012/11/16/flame-graphs-for-instruments

and then I try to make some flame on osx.

  1. open xcode

  2. input Command+i to open Instruments

  3. choose "Time Profiler"

  4. choose one target

  5. start recording a call tree

  6. export to out.csv   Instrument -> Export Track

  7. then use Bredan‘s script to run

      

stackcollapse-instruments.pl  out.csv | ./flamegraph.pl >mygraph.svg

 

       done.

tunning-Instruments and Flame Graphs

标签:

原文地址:http://www.cnblogs.com/zzuse/p/5691049.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!