diff options
| author | 2018-01-31 22:00:33 +0000 | |
|---|---|---|
| committer | 2018-01-31 22:00:33 +0000 | |
| commit | f46ac618bcf7923f6cc03e984bd921e78e28c523 (patch) | |
| tree | 96ef57fcf7d85384b1a7e99b17a688da04c79854 | |
| parent | 7ae1dc3311b9beb631c415c971d0522d89f7e906 (diff) | |
| parent | ac8b69a71596f6e40a44bc5edd65c864d2fa1bd4 (diff) | |
Merge "Wifi power stats proto"
| -rw-r--r-- | proto/src/wifi.proto | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto index f5349df0bd94..f6a54af89196 100644 --- a/proto/src/wifi.proto +++ b/proto/src/wifi.proto @@ -373,6 +373,9 @@ message WifiLog { // Wps connection metrics optional WpsMetrics wps_metrics = 91; + + // Wifi power statistics + optional WifiPowerStats wifi_power_stats = 92; } // Information that gets logged for every WiFi connection. @@ -1134,3 +1137,22 @@ message WpsMetrics { // Total number of wps cancellation optional int32 num_wps_cancellation = 8; } + +// Power stats for Wifi +message WifiPowerStats { + + // Duration of log (ms) + optional int64 logging_duration_ms = 1; + + // Energy consumed by wifi (mAh) + optional double energy_consumed_mah = 2; + + // Amount of time wifi is in idle (ms) + optional int64 idle_time_ms = 3; + + // Amount of time wifi is in rx (ms) + optional int64 rx_time_ms = 4; + + // Amount of time wifi is in tx (ms) + optional int64 tx_time_ms = 5; +}
\ No newline at end of file |