Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 591a72da authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

dumpstate: dump CPU time consumed for each thread

This should be useful to diagnose battery drain bugs due to
accidental semi-infinite busy-loop in processes that merely
get killed by the system (e.g. IMEs).

Bug: 67330309
Fixes: 67482875
Test: Manually verified by checking 'adb bugreport report.zip'
Change-Id: I1fedaf2518dd65dac105b29a74d50b51eb633cd7
parent 049c1147
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1062,7 +1062,7 @@ static void dumpstate() {
    DumpFile("KERNEL SYNC", "/d/sync");

    RunCommand("PROCESSES AND THREADS",
               {"ps", "-A", "-T", "-Z", "-O", "pri,nice,rtprio,sched,pcy"});
               {"ps", "-A", "-T", "-Z", "-O", "pri,nice,rtprio,sched,pcy,time"});
    RunCommand("LIBRANK", {"librank"}, CommandOptions::AS_ROOT);

    if (ds.IsZipping()) {