???traceview????Android???????
???????????? ???????[ 2015/7/9 11:20:56 ] ??????????????? ???????
??????? 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???????
???????????????????ν????????????
??????? TraceView?????????????
?????????????????????????е???????????????????????????????????TraceView?????
???????????????£?
????1?? ???Eclipse???????????????;
????2?? ?????????????????????????DDMS????а???????;
????3?? ???Start profile method???;
????4?? ???????д??????????????????????????????????;
????5?? ???DDMS?е?stop profile method??????????? Eclipse??????????????ν??檔
??????????????????(time/calls)???С???????????????:
??????????????DetailActivityForPicture.onCreat()?????????????????4.034??????????1?Σ?????????? ?????????????????????????У??????DetailActivityForPicture.initInfo()?????????0.9s????????? ??????????????????????initInfo()??????????????
??????????????DetailActivityForPicture.initInfo()???????????????????????
??????????????????initFavoriteButton()????????0.4s?????β??????????????
????DialogBoxUtil.getFavoriteWindow()??FavoritePropertyModel.???????????????????????????????????????????ο???????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11