Add new WifiWake metrics
Adds initialize event, total number of wakes, and number of ignored
calls to start (from Wakeup already being active).
Bug: 72762459
Test: make
Change-Id: I09fea7b4fcaf3624f06a185160f94d06544e5038
diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto
index 9c74188..c79eaf4 100644
--- a/proto/src/wifi.proto
+++ b/proto/src/wifi.proto
@@ -1234,9 +1234,16 @@
// Start time of session in milliseconds.
optional int64 start_time_millis = 1;
- // The number of networks the lock was initialized with at start.
+ // The number of networks the lock was provided with at start.
optional int32 locked_networks_at_start = 2;
+ // The number of networks in the lock at the time of the initialize event. Only valid if
+ // initialize_event is recorded.
+ optional int32 locked_networks_at_initialize = 6;
+
+ // Event for fully initializing the WakeupLock (i.e. WakeupLock is "locked").
+ optional Event initialize_event = 7;
+
// Event for unlocking the WakeupLock. Does not occur if lock was initialized with 0 networks.
optional Event unlock_event = 3;
@@ -1252,4 +1259,10 @@
// Session information for every Wifi Wake session (up to a maximum of 10).
repeated Session sessions = 2;
+
+ // Number of ignored calls to start (due to WakeupController already being active).
+ optional int32 num_ignored_starts = 3;
+
+ // Number of Wifi Wake sessions that have recorded wakeup events.
+ optional int32 num_wakeups = 4;
}