Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3cad6241 authored by Eric Schwarzenbach's avatar Eric Schwarzenbach
Browse files

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
parent 02c0bbdc
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -1234,9 +1234,16 @@ message WifiWakeStats {
    // 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 @@ message WifiWakeStats {

  // 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;
}