Create a pushed atom that gets logged when the ActivityManagerService detects that an app died.
Test: Manual
Bug: 73660232
Change-Id: I8e1fda35deb1e6876da0b6638fefea9f1b92b641
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto
index 42ae022..8e06504 100644
--- a/cmds/statsd/src/atoms.proto
+++ b/cmds/statsd/src/atoms.proto
@@ -104,6 +104,7 @@
KeyguardStateChanged keyguard_state_changed = 62;
KeyguardBouncerStateChanged keyguard_bouncer_state_changed = 63;
KeyguardBouncerPasswordEntered keyguard_bouncer_password_entered = 64;
+ AppDied app_died=65;
// TODO: Reorder the numbering so that the most frequent occur events occur in the first 15.
}
@@ -1235,6 +1236,17 @@
optional int64 swap_in_bytes = 8;
}
+/*
+ * Logs when the ActivityManagerService detects that an app died.
+ *
+ * Logged from:
+ * frameworks/base/services/core/java/com/android/server/am/ActivityManagerService.java
+ */
+message AppDied {
+ // timestamp(elapsedRealtime) of record creation
+ optional uint64 timestamp_millis = 1;
+}
+
//////////////////////////////////////////////////////////////////////
// Pulled atoms below this line //
//////////////////////////////////////////////////////////////////////