perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
78 lines (68 loc) • 3 kB
text/typescript
//
// Copyright (C) 2022 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.
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts"
// @generated from file protos/perfetto/trace/statsd/statsd_atom.proto (package perfetto.protos, syntax proto2)
/* eslint-disable */
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file protos/perfetto/trace/statsd/statsd_atom.proto.
*/
export const file_protos_perfetto_trace_statsd_statsd_atom: GenFile = /*@__PURE__*/
fileDesc("Ci5wcm90b3MvcGVyZmV0dG8vdHJhY2Uvc3RhdHNkL3N0YXRzZF9hdG9tLnByb3RvEg9wZXJmZXR0by5wcm90b3MiBgoEQXRvbSJKCgpTdGF0c2RBdG9tEiMKBGF0b20YASADKAsyFS5wZXJmZXR0by5wcm90b3MuQXRvbRIXCg90aW1lc3RhbXBfbmFub3MYAiADKAM");
/**
* Deliberate empty message. See comment on StatsdAtom#atom below.
*
* @generated from message perfetto.protos.Atom
*/
export type Atom = Message<"perfetto.protos.Atom"> & {
};
/**
* Describes the message perfetto.protos.Atom.
* Use `create(AtomSchema)` to create a new message.
*/
export const AtomSchema: GenMessage<Atom> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_statsd_statsd_atom, 0);
/**
* One or more statsd atoms. This must continue to match:
* perfetto/protos/third_party/statsd/shell_data.proto
* So that we can efficiently add data from statsd directly to the
* trace.
*
* @generated from message perfetto.protos.StatsdAtom
*/
export type StatsdAtom = Message<"perfetto.protos.StatsdAtom"> & {
/**
* Atom should be filled with an Atom proto from:
* https://cs.android.com/android/platform/superproject/main/+/main:frameworks/proto_logging/stats/atoms.proto?q=f:stats%2Fatoms.proto$%20message%5C%20Atom
* We don't reference Atom directly here since we don't want to import
* Atom.proto and all its transitive dependencies into Perfetto.
* atom and timestamp_nanos have the same cardinality
*
* @generated from field: repeated perfetto.protos.Atom atom = 1;
*/
atom: Atom[];
/**
* @generated from field: repeated int64 timestamp_nanos = 2;
*/
timestampNanos: bigint[];
};
/**
* Describes the message perfetto.protos.StatsdAtom.
* Use `create(StatsdAtomSchema)` to create a new message.
*/
export const StatsdAtomSchema: GenMessage<StatsdAtom> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_statsd_statsd_atom, 1);