Since you are using Trepn Profiler, it has a function to keep the device awake during profiling sessions, even if the screen is off.
This can be enabled in the Trepn settings:
Settings β General Information; Turn on Get Wakelock when profiling.
Then you can start your test and press the deviceβs power button to turn off the screen. Trepn will support the processor for you.
In Trepn Profiler and above, this is in "Advanced Mode".
source share