вторник, април 23, 2013

Android TimingLogger - make TAG isLoggable = true

TimingLogger timings = new TimingLogger("MYTAG", "MYLABEL");
timings.addSplit("work A");
timings.addSplit("work B);
timings.addSplit("work C");
timings.dumpToLog(); // I forget this everytime!!!!!!!
Execute the following command line to enable TAG isLoggable property
adb shell setprop log.tag.MYTAG VERBOSE
Show MYTAG with level Warning
adb logcat -v time MYTAG:W *:S

Няма коментари: