UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

78 lines (68 loc) 3.57 kB
// // Copyright (C) 2020 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/common/tracing_service_capabilities.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 { ObservableEvents_Type } from "./observable_events_pb"; import { file_protos_perfetto_common_observable_events } from "./observable_events_pb"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file protos/perfetto/common/tracing_service_capabilities.proto. */ export const file_protos_perfetto_common_tracing_service_capabilities: GenFile = /*@__PURE__*/ fileDesc("Cjlwcm90b3MvcGVyZmV0dG8vY29tbW9uL3RyYWNpbmdfc2VydmljZV9jYXBhYmlsaXRpZXMucHJvdG8SD3BlcmZldHRvLnByb3RvcyLAAQoaVHJhY2luZ1NlcnZpY2VDYXBhYmlsaXRpZXMSHgoWaGFzX3F1ZXJ5X2NhcGFiaWxpdGllcxgBIAEoCBJBChFvYnNlcnZhYmxlX2V2ZW50cxgCIAMoDjImLnBlcmZldHRvLnByb3Rvcy5PYnNlcnZhYmxlRXZlbnRzLlR5cGUSJAocaGFzX3RyYWNlX2NvbmZpZ19vdXRwdXRfcGF0aBgDIAEoCBIZChFoYXNfY2xvbmVfc2Vzc2lvbhgEIAEoCA", [file_protos_perfetto_common_observable_events]); /** * @generated from message perfetto.protos.TracingServiceCapabilities */ export type TracingServiceCapabilities = Message<"perfetto.protos.TracingServiceCapabilities"> & { /** * Whether the service supports QueryCapabilities() at all or not. * This is only used at the C++ level to distinguish the case of talking to * an older version of the service that doesn't support QueryCapabilities(). * In that case the IPC layer will just reject the unknown call, and the * consumer_ipc_client_impl.cc will return an empty message where this field * is false. In all other cases, this is always set to true. * * @generated from field: optional bool has_query_capabilities = 1; */ hasQueryCapabilities: boolean; /** * The set of known events that can be passed to ConsumerPort.ObserveEvents(). * * @generated from field: repeated perfetto.protos.ObservableEvents.Type observable_events = 2; */ observableEvents: ObservableEvents_Type[]; /** * Whether the service supports TraceConfig.output_path (for asking traced to * create the output file instead of passing a file descriptor). * * @generated from field: optional bool has_trace_config_output_path = 3; */ hasTraceConfigOutputPath: boolean; /** * Whether the service supports CloneSession and CLONE_SNAPSHOT triggers. * * @generated from field: optional bool has_clone_session = 4; */ hasCloneSession: boolean; }; /** * Describes the message perfetto.protos.TracingServiceCapabilities. * Use `create(TracingServiceCapabilitiesSchema)` to create a new message. */ export const TracingServiceCapabilitiesSchema: GenMessage<TracingServiceCapabilities> = /*@__PURE__*/ messageDesc(file_protos_perfetto_common_tracing_service_capabilities, 0);