diff options
| author | Tianjie Xu <xunchang@google.com> | 2016-09-16 18:40:45 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2016-09-16 18:40:45 +0000 |
| commit | 43921537535aceccf18cb908046b25ddc8b85e47 (patch) | |
| tree | 2cafcf45756bc3cf86a113d6d1f71da7dbcd9965 /core/java/android/os/RecoverySystem.java | |
| parent | 8b4da0ee048764d8d893b9857d8948329eb37418 (diff) | |
| parent | 1579ce8a1d57a21ee41fd8c4d5ce79ebe194a6f5 (diff) | |
Merge "Collect status on uncrypt time cost" am: bc19e00d35 am: 79d27bdeac
am: 1579ce8a1d
Change-Id: I17fe7d518a0bc5876d91373b643dd95779be2c54
Diffstat (limited to 'core/java/android/os/RecoverySystem.java')
| -rw-r--r-- | core/java/android/os/RecoverySystem.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/os/RecoverySystem.java b/core/java/android/os/RecoverySystem.java index 507379baaa94..90bd11fe83bc 100644 --- a/core/java/android/os/RecoverySystem.java +++ b/core/java/android/os/RecoverySystem.java @@ -724,6 +724,7 @@ public class RecoverySystem { String line = null; int bytesWrittenInMiB = -1, bytesStashedInMiB = -1; int timeTotal = -1; + int uncryptTime = -1; int sourceVersion = -1; while ((line = in.readLine()) != null) { // Here is an example of lines in last_install: @@ -759,6 +760,8 @@ public class RecoverySystem { if (line.startsWith("time")) { timeTotal = scaled; + } else if (line.startsWith("uncrypt_time")) { + uncryptTime = scaled; } else if (line.startsWith("source_build")) { sourceVersion = scaled; } else if (line.startsWith("bytes_written")) { @@ -774,6 +777,9 @@ public class RecoverySystem { if (timeTotal != -1) { MetricsLogger.histogram(context, "ota_time_total", timeTotal); } + if (uncryptTime != -1) { + MetricsLogger.histogram(context, "ota_uncrypt_time", uncryptTime); + } if (sourceVersion != -1) { MetricsLogger.histogram(context, "ota_source_version", sourceVersion); } |
