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

Commit 498229f3 authored by Marcin Oczeretko's avatar Marcin Oczeretko
Browse files

Add 'Process-Runtime:' header to dropbox entries

The header stores the time since the app process has started.

Test: manually verified that error dropbox entries have the new header
with adb shell dumpsys dropbox -p data_app_crash

Change-Id: Icce62b83cc2d65794f8e39564fdea3f44c00d2e3
parent 0cdb7e95
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -9736,6 +9736,10 @@ public class ActivityManagerService extends IActivityManager.Stub
            sb.append("Foreground: ")
                    .append(process.isInterestingToUserLocked() ? "Yes" : "No")
                    .append("\n");
            if (process.startTime > 0) {
                long runtimeMillis = SystemClock.elapsedRealtime() - process.startTime;
                sb.append("Process-Runtime: ").append(runtimeMillis).append("\n");
            }
        }
        if (activityShortComponentName != null) {
            sb.append("Activity: ").append(activityShortComponentName).append("\n");