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

Commit 18ca8911 authored by Siim Sammul's avatar Siim Sammul Committed by Automerger Merge Worker
Browse files

Merge "Add buckets params to the binder latency atom" into sc-dev am: eebade3c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14201550

Change-Id: Ib40c880acc73b8258ad1358df66e8d8f9b3a94b9
parents 163b92ea eebade3c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -157,7 +157,10 @@ public class BinderLatencyObserver {
                FrameworkStatsLog.BINDER_LATENCY_REPORTED,
                atom.getBytes(),
                mPeriodicSamplingInterval,
                1);
                1,
                mBucketCount,
                mFirstBucketSize,
                mBucketScaleFactor);
    }

    private void noteLatencyDelayed() {
+17 −1
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ message Dims {
    UNKNOWN_PROCESS_SOURCE = 0;
    SYSTEM_SERVER = 1;
    TELEPHONY = 2;
    BLUETOOTH = 3;
  }

  enum ServiceClassName {
@@ -74,4 +75,19 @@ message ApiStats {
  // Stores the count of samples for each bucket. The number of buckets and
  // their sizes are controlled server side with a flag.
  repeated int32 buckets = 3;

  // Params for histogram buckets.
  // The number of buckets in the histogram. Store this value separately
  // as the tail of empty buckets is truncated when stored in the proto to
  // conserve space. Thus it is not possible to infer this value from there.
  optional int32 bucket_count = 4;

  // The size (upper bound) of the first bucket (used to avoid creating an
  // excessive amount of small buckets). E.g. for first_bucket_size of 5, the
  // first bucket will be [0, 5) and the second will be [5, 5 * scaleFactor).
  optional int32 first_bucket_size = 5;

  // The rate in which each consecutive bucket increases (before rounding).
  // Implemented in: com.android.internal.os.BinderLatencyBuckets.
  optional float scale_factor = 6;
}