perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
68 lines (59 loc) • 2.42 kB
text/typescript
//
// Copyright (C) 2019 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/trigger.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/trigger.proto.
*/
export const file_protos_perfetto_trace_trigger: GenFile = /*@__PURE__*/
fileDesc("CiNwcm90b3MvcGVyZmV0dG8vdHJhY2UvdHJpZ2dlci5wcm90bxIPcGVyZmV0dG8ucHJvdG9zIlQKB1RyaWdnZXISFAoMdHJpZ2dlcl9uYW1lGAEgASgJEhUKDXByb2R1Y2VyX25hbWUYAiABKAkSHAoUdHJ1c3RlZF9wcm9kdWNlcl91aWQYAyABKAU");
/**
* When a TracingSession receives a trigger it records the boot time nanoseconds
* in the TracePacket's timestamp field as well as the name of the producer that
* triggered it. We emit this data so filtering can be done on triggers received
* in the trace.
*
* @generated from message perfetto.protos.Trigger
*/
export type Trigger = Message<"perfetto.protos.Trigger"> & {
/**
* Name of the trigger which was received.
*
* @generated from field: optional string trigger_name = 1;
*/
triggerName: string;
/**
* The actual producer that activated |trigger|.
*
* @generated from field: optional string producer_name = 2;
*/
producerName: string;
/**
* The verified UID of the producer.
*
* @generated from field: optional int32 trusted_producer_uid = 3;
*/
trustedProducerUid: number;
};
/**
* Describes the message perfetto.protos.Trigger.
* Use `create(TriggerSchema)` to create a new message.
*/
export const TriggerSchema: GenMessage<Trigger> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_trigger, 0);