From a5a696a774738aea4e09df41829a15159d2de8b0 Mon Sep 17 00:00:00 2001 From: Keun young Park Date: Mon, 3 Feb 2020 09:42:36 -0800 Subject: [PATCH] statsd atom: Fix errara and missing item for boottime metrics - Init's 1st stage has both start time and duration. Add missing duration. - Fix other errata. Bug: 132691841 Test: Build Change-Id: I5ea25cba29ab8b4de630308eaba2b5d6f30a29b7 --- cmds/statsd/src/atoms.proto | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index 12058cae1a2ae..86b932f3d968a 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -4231,6 +4231,9 @@ message BootTimeEventDuration { // Time since last factory reset. // Logged from bootstat. FACTORY_RESET_TIME_SINCE_RESET = 18; + // Init's total time spent for completing the 1st stage. + // Logged from bootstat. + ANDROID_INIT_STAGE_1 = 19; } // Type of the event. @@ -4258,19 +4261,19 @@ message BootTimeEventElapsedTime { // BOOT_COMPLETE for device with no encryption. BOOT_COMPLETE_NO_ENCRYPTION = 4; // Adjusted BOOT_COMPLETE for encrypted device extracting decryption time. - BOOT_COMPLETE_POST_DESCRYPT = 5; + BOOT_COMPLETE_POST_DECRYPT = 5; // BOOT_COMPLETE after factory reset. FACTORY_RESET_BOOT_COMPLETE = 6; // BOOT_COMPLETE_NO_ENCRYPTION after factory reset. FACTORY_RESET_BOOT_COMPLETE_NO_ENCRYPTION = 7; - // BOOT_COMPLETE_POST_DESCRYPT after factory reset. - FACTORY_RESET_BOOT_COMPLETE_POST_DESCRYPT = 8; + // BOOT_COMPLETE_POST_DECRYPT after factory reset. + FACTORY_RESET_BOOT_COMPLETE_POST_DECRYPT = 8; // BOOT_COMPLETE after OTA. OTA_BOOT_COMPLETE = 9; // BOOT_COMPLETE_NO_ENCRYPTION after OTA. OTA_BOOT_COMPLETE_NO_ENCRYPTION = 10; - // BOOT_COMPLETE_POST_DESCRYPT after OTA. - OTA_BOOT_COMPLETE_POST_DESCRYPT = 11; + // BOOT_COMPLETE_POST_DECRYPT after OTA. + OTA_BOOT_COMPLETE_POST_DECRYPT = 11; // Time when the system starts sending LOCKED_BOOT_COMPLETED broadcast. // Logged from f/b/services/.../UserController.java FRAMEWORK_LOCKED_BOOT_COMPLETED = 12;