性能數據獲取

xcode獲取

打開xcode工程目錄 -> Product -> Profile -> select one template -> start record,即可看到相關的性能數據

 

命令行抓取(instruments)

-t 指定模板,可通過instruments -s獲得,或者通過:1. 打開xcode工程目錄 -> Product -> Profile,來查看
-w 指定設備,即udid,可通過instruments -s或idevice_id -l獲得
-l 時間,單位:ms
application app的包名,
例:
instruments -t “Leaks” -w uuid -l 1000 com.HelloWorld

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章