Created
August 11, 2016 09:28
-
-
Save panthole/83038fe8c9a448330f91c162db25b591 to your computer and use it in GitHub Desktop.
Android记录方法执行时间
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TimingLogger timings = new TimingLogger(TAG, "methodA"); | |
// ... do some work A ... | |
timings.addSplit("work A"); | |
// ... do some work B ... | |
timings.addSplit("work B"); | |
// ... do some work C ... | |
timings.addSplit("work C"); | |
timings.dumpToLog(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment