The TimingLogger is useful to measure precisely the execution time of code blocks (or even just one line of code).
The Android docs show how it can be used. Below is a simple example:
warning
The TimingLogger will not output anything unless it is manually enabled.
The following command enables the TimingLogger output for
MYTAG
|
|
After the TimingLogger
is enabled and the application has started generating logs, we can view them with the adb
command:
|
|