Last active
July 27, 2018 09:45
-
-
Save vorobeij/146063629dc7c764fa154e5380492758 to your computer and use it in GitHub Desktop.
android time measure
This file contains hidden or 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
| val timings = TimingLogger("YOUR_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() | |
| // adb shell setprop log.tag.YOUR_TAG VERBOSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment