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"; 18package perfetto.protos; 19 20// Deliberate empty message. See comment on StatsdAtom#atom below. 21message Atom {} 22 23// One or more statsd atoms. This must continue to match: 24// perfetto/protos/third_party/statsd/shell_data.proto 25// So that we can efficiently add data from statsd directly to the 26// trace. 27message StatsdAtom { 28 // Atom should be filled with an Atom proto from: 29 // https://cs.android.com/android/platform/superproject/+/master:frameworks/proto_logging/stats/atoms.proto?q=f:stats%2Fatoms.proto$%20message%5C%20Atom 30 // We don't reference Atom directly here since we don't want to import 31 // Atom.proto and all its transitive dependencies into Perfetto. 32 // atom and timestamp_nanos have the same cardinality 33 repeated Atom atom = 1; 34 repeated int64 timestamp_nanos = 2; 35} 36