
/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

syntax = "proto2";

package perfetto.protos;

message HistogramSummary {
  // The name of the histogram event
  optional string name = 1;
  // The avarage value of the histogram event
  optional int64 mean = 2;
  // The number of the histogram event in the trace track
  optional uint32 count = 3;
  // The sum of value of the histogram event
  optional int64 sum = 4;
  // The maximum value of the histogram event
  optional int64 max = 5;
  // The 90 percentile value of the histogram event
  optional int64 p90 = 6;
  // The 50 percentile (median) value of the histogram event
  optional int64 p50 = 7;
}

// The list of the summary of Chrome Histograms in trace track events.
// This includes the statistic information of each histograms from Chrome.
message ChromeHistogramSummaries {
  repeated HistogramSummary histogram_summary = 1;
}
