??????? TraceView???????

????Traceview??android????????????????????????????????????ν??????????????????????????????????????????嵽method??

???????? TraceView??????÷???

????TraceView??????????????????????????

????1?? ?????????

??????????????????

????Debug.startMethodTracing(“Tracelog”);

????Debug.stopMethodTracing();

???????????????????????AndroidMainfest.xml?е?SD?????д???????????

??????????????????SD???????????Tracelog????????adb pull??????????????XP?????????android sdk??tools???????traceview Tracelog????????????ν??棬????????ν??????????????????????;

????2?? Eclipse?????

????Eclipse???traceview?????????DDMS?ж????????????y????????°??

???????????traceview??????????????????Eclipse?????????????1?е??????ν???;

????3?? adb ?????????

????adb shell am profile start

????adb shell am profile stop

????PROCESS_ID????????????????ps????????TRACE_FILE?????洢??Trcaelog?????

???????????????????????????TRACE_FILE?????adb pull??????????????XP?????????android sdk??tools???????traceview Tracelog????????????ν??棬????????ν??????????????????????;

???????? TraceView???????

???????????????????ν????????????

????1?????????壺

?????????????ж????????????僉????????????????????????ò???????????????????????????з???????????(????????)??

????2??Profile??壺

????????????the inclusive and exclusive times??????????е?????

????Exclusive time??ú??????????????(???????????????)?????

????Inclusive time??ú???????????????(?????????????)?????

??????1??”Name”???????????

????????????????????????????????????????(Timeline Panel)????????????????Ρ?(??????α??)??

?????????????????”+”??????????????ú?????”parents”??”children”