• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2022 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
21import "protos/perfetto/config/statsd/atom_ids.proto";
22
23// This file is named 'statsd_tracing_config.proto' rather than
24// 'statsd_config.proto' (which would be more consistent with the other
25// config protos) so it doesn't show up and confuse folks looking for
26// the existing statsd_config.proto for configuring statsd itself.
27// Same for the config proto itself.
28message StatsdTracingConfig {
29  // This is for the common case of the atom id being known in the enum AtomId.
30  repeated AtomId push_atom_id = 1;
31
32  // Escape hatch for Atom IDs that are not yet in the AtomId enum
33  // (e.g. non-upstream atoms that don't exist in AOSP).
34  repeated int32 raw_push_atom_id = 2;
35  repeated StatsdPullAtomConfig pull_config = 3;
36}
37
38message StatsdPullAtomConfig {
39  repeated AtomId pull_atom_id = 1;
40  repeated int32 raw_pull_atom_id = 2;
41
42  optional int32 pull_frequency_ms = 3;
43  repeated string packages = 4;
44}
45