首先我下載的opimport_pull 這個python在adb步驟一直卡住
所以我只好自己手動將/data/oprofile裡面的檔案手動拉出來
但是手動拉出來時會碰到明明就有檔案
卻是0 pulled, 0 failed 的情形
後來發現應該是權限問題
所以改用 adb root的方式重新設定與手機連線的方式一遍
之後要拉檔案出來就沒問題了
然後我將檔案存在預先訂好的result/raw_samples裡面
然後執行放在./external/oprofile的opimport_pull就可以了
貼一下我參考比較有用的一些連結
http://shmichen.blogspot.com/2010/10/enable-oprofile-on-android.html
http://tw.myblog.yahoo.com/chimei-015/article?mid=1023&prev=1024&next=1022
http://hamersun.blogspot.com/2010/09/how-to-use-oprofile-on-embedded-system.html
http://hi.baidu.com/snownight/blog/item/6d81c3ce305fc11193457e56.html
http://yidonghan.wordpress.com/2010/01/28/profiling-the-android-kernel-and-native-applications-using-oprofile/
http://oprofile.sourceforge.net/doc/index.html
http://stackoverflow.com/questions/375913/what-can-i-use-to-profile-c-code-in-linux/378024#378024
http://blog.csdn.net/louieuser/archive/2011/01/19/6152186.aspx
- May 17 Tue 2011 22:12
oprofile on G1
close
全站熱搜
留言列表
發表留言