Merge "[metrics] log TotalDelayedReadsDurationMillis during ANR and Crash" into sc-dev
This commit is contained in:
@@ -90,7 +90,7 @@ public class IncrementalMetrics {
|
|||||||
* @return total duration in milliseconds of delayed reads
|
* @return total duration in milliseconds of delayed reads
|
||||||
*/
|
*/
|
||||||
public long getTotalDelayedReadsDurationMillis() {
|
public long getTotalDelayedReadsDurationMillis() {
|
||||||
return mData.getInt(IIncrementalService.METRICS_TOTAL_DELAYED_READS_MILLIS, -1);
|
return mData.getLong(IIncrementalService.METRICS_TOTAL_DELAYED_READS_MILLIS, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -7842,7 +7842,9 @@ public class ActivityManagerService extends IActivityManager.Stub
|
|||||||
incrementalMetrics != null ? incrementalMetrics.getMillisSinceLastReadError()
|
incrementalMetrics != null ? incrementalMetrics.getMillisSinceLastReadError()
|
||||||
: -1,
|
: -1,
|
||||||
incrementalMetrics != null ? incrementalMetrics.getLastReadErrorNumber()
|
incrementalMetrics != null ? incrementalMetrics.getLastReadErrorNumber()
|
||||||
: 0
|
: 0,
|
||||||
|
incrementalMetrics != null ? incrementalMetrics.getTotalDelayedReadsDurationMillis()
|
||||||
|
: -1
|
||||||
);
|
);
|
||||||
|
|
||||||
final int relaunchReason = r == null ? RELAUNCH_REASON_NONE
|
final int relaunchReason = r == null ? RELAUNCH_REASON_NONE
|
||||||
|
|||||||
@@ -470,7 +470,9 @@ class ProcessErrorStateRecord {
|
|||||||
incrementalMetrics != null ? incrementalMetrics.getMillisSinceLastReadError()
|
incrementalMetrics != null ? incrementalMetrics.getMillisSinceLastReadError()
|
||||||
: -1,
|
: -1,
|
||||||
incrementalMetrics != null ? incrementalMetrics.getLastReadErrorNumber()
|
incrementalMetrics != null ? incrementalMetrics.getLastReadErrorNumber()
|
||||||
: 0);
|
: 0,
|
||||||
|
incrementalMetrics != null ? incrementalMetrics.getTotalDelayedReadsDurationMillis()
|
||||||
|
: -1);
|
||||||
final ProcessRecord parentPr = parentProcess != null
|
final ProcessRecord parentPr = parentProcess != null
|
||||||
? (ProcessRecord) parentProcess.mOwner : null;
|
? (ProcessRecord) parentProcess.mOwner : null;
|
||||||
mService.addErrorToDropBox("anr", mApp, mApp.processName, activityShortComponentName,
|
mService.addErrorToDropBox("anr", mApp, mApp.processName, activityShortComponentName,
|
||||||
|
|||||||
Reference in New Issue
Block a user