[incremental] expose duration metrics to activity manager
Change existing metrics proto to include: 1) whether the crashed/ANR'd app is incremental 2) the loading progress of the crashed/ANR'd app 3) the duration in milliseconds since the oldest pending read Example logcat: 03-08 11:21:31.405 1668 5779 E ActivityManager: App crashed on incremental package mytown.police which is 81% loaded. Example crash metrics: metric_id: 1111 event_metrics { data { elapsed_timestamp_nanos: 1141413709431 atom { app_crash_occurred { uid: 10348 event_type: "crash" process_name: "mytown.police" pid: 21236 package_name: "mytown.police" is_instant_app: FALSE foreground_state: FOREGROUND error_source: DATA_APP >>> is_incremental: true >>> loading_progress: 0.81358474 >>> millis_since_oldest_pending_read: 20092 } } } } BUG: 180951530 Test: atest CtsStatsdAtomHostTestCases:android.cts.statsdatom.statsd.UidAtomTests#testANROccurred Test: manual with disabled rest streaming Change-Id: I931acfed37304fa35f756286b424512490b0e312
Loading
Please register or sign in to comment