????Traceview??android???????????????????????????????????λ?????????????????????????????????????????嵽method??

??????SDK·?? ools????

????1?????????TraceView??????

????????豸???????????????SD card ?? ????????ж?SD card ???ж?д?????????(

????<uses-permission android??name="android.permission.WRITE_EXTERNAL_STORAGE" />)

????2???????????????TraceView

??????activity?е?oncreate?????м???

Debug.stopMethodTracing(); 

????????onDestroy()??????

Debug.stopMethodTracing()

????????????????????????????????????????????????????????activity??onDestroy()??????????????????????????????????????????trace?????????????onStop()????????Debug.stopMethodTracing()?????????????л???????activity??????home???????onStop()????????????????????????trace file??

?????????г????????????????????AVD?????????SD card??AVD???????????trace??????浽/sdcard/...???С????к???????????Щ???????????home???????????DDMS file explore???????/sdcard/?????????trace????????????????copy???????????????????????C?? racefile ?????

??  ??????????????????traceview??????tools??????? traceview C?? racefileyourActivityTrace.trace???????????????

??????????????Щ?????

????Exclusive????????????????е????

????Inclusive ??????????????????е????????????????????????е????

????Name???г????????е??????????????????????????????е???Parent ??Children????????????ú???á?

????Incl??inclusive?????????????

????Excl????????????????

????Calls+Recur Calls/Total?????ú????????????

????Time/Call????????(ms)

????????????У????????????traceview??monkey???????????????????????????????????