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

Skip to content
Commit af8b2d90 authored by chenqiwu's avatar chenqiwu
Browse files

dumpstate: allow printf the duration of command to bugreport



Google bring change b86f33be to ignore printting the duration
of command shorter than 500ms to bugreport. However, it is not
convenient for developers to grep|sort the dumpstate sections.

I think the right thing to do is:
(1) Keep the logcat logging the same:
     if (elapsed >= .5f || verbose_) {
         MYLOGD("Duration of '%s': %.2fs\n", title_.c_str(), elapsed);
      }
(2) printf the duration of command if logcat_only_ is false.

Change-Id: I947fdd514eb31b6a6058dd841d15ba41aba063ac
Signed-off-by: default avatarchenqiwu <chenqiwu@xiaomi.com>
parent 1cde0795
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment