1/* 2 * Copyright (C) 2025 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17syntax = "proto2"; 18 19package perfetto.protos; 20 21message ChromiumHistogramSamplesConfig { 22 // Records when a value within the specified bounds [min_value, max_value] is 23 // emitted into a Chrome histogram. 24 message HistogramSample { 25 optional string histogram_name = 1; 26 optional int64 min_value = 2; 27 optional int64 max_value = 3; 28 } 29 // List of histograms to record. If no histogram is specified, all histograms 30 // are recorded. 31 repeated HistogramSample histograms = 1; 32 33 // Default: false (i.e. histogram names are NOT filtered out by default) 34 // When true, histogram_name will be filtered out. 35 optional bool filter_histogram_names = 2; 36} 37