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

Commit 3658fa7f authored by Ben Blount's avatar Ben Blount
Browse files

Add timing / count for IntelligenceEventReported

Some intelligence events would like timing information we can collect
via ValueMetrics. We also have a few counters that can be high frequency
enough that we will batch them in memory before reporting to statsd such
as text annotation metrics for text views.

Test: m
out/soong/.intermediates/frameworks/base/framework-statslog-gen/gen/android/util/StatsLogInternal.java

Change-Id: I9e2d7dab8c51a243afd9950b4380d6c7c98e58db
parent f2949eb2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -6009,6 +6009,12 @@ message CoolingDevice {
 * Logged from the Intelligence mainline module.
 */
message IntelligenceEventReported {
  // The event type.
  optional android.stats.intelligence.EventType event_id = 1;
  // Success, failure.
  optional android.stats.intelligence.Status status = 2;
  // How many times the event occured (to report a batch of high frequency events).
  optional int32 count = 3;
  // How long the event took (averaged for batches).
  optional int64 duration_millis = 4;
}