perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
109 lines (94 loc) • 4.07 kB
text/typescript
//
// Copyright (C) 2018 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/config/chrome/chrome_config.proto (package perfetto.protos, syntax proto2)
/* eslint-disable */
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file protos/perfetto/config/chrome/chrome_config.proto.
*/
export const file_protos_perfetto_config_chrome_chrome_config: GenFile = /*@__PURE__*/
fileDesc("CjFwcm90b3MvcGVyZmV0dG8vY29uZmlnL2Nocm9tZS9jaHJvbWVfY29uZmlnLnByb3RvEg9wZXJmZXR0by5wcm90b3MikgIKDENocm9tZUNvbmZpZxIUCgx0cmFjZV9jb25maWcYASABKAkSIQoZcHJpdmFjeV9maWx0ZXJpbmdfZW5hYmxlZBgCIAEoCBIeChZjb252ZXJ0X3RvX2xlZ2FjeV9qc29uGAMgASgIEkUKD2NsaWVudF9wcmlvcml0eRgEIAEoDjIsLnBlcmZldHRvLnByb3Rvcy5DaHJvbWVDb25maWcuQ2xpZW50UHJpb3JpdHkSHwoXanNvbl9hZ2VudF9sYWJlbF9maWx0ZXIYBSABKAkiQQoOQ2xpZW50UHJpb3JpdHkSCwoHVU5LTk9XThAAEg4KCkJBQ0tHUk9VTkQQARISCg5VU0VSX0lOSVRJQVRFRBAC");
/**
* @generated from message perfetto.protos.ChromeConfig
*/
export type ChromeConfig = Message<"perfetto.protos.ChromeConfig"> & {
/**
* @generated from field: optional string trace_config = 1;
*/
traceConfig: string;
/**
* When enabled, the data source should only fill in fields in the output that
* are not potentially privacy sensitive.
*
* @generated from field: optional bool privacy_filtering_enabled = 2;
*/
privacyFilteringEnabled: boolean;
/**
* Instead of emitting binary protobuf, convert the trace data to the legacy
* JSON format. Note that the trace data will still be returned as a series of
* TracePackets, but the embedded data will be JSON instead of serialized
* protobuf.
*
* @generated from field: optional bool convert_to_legacy_json = 3;
*/
convertToLegacyJson: boolean;
/**
* @generated from field: optional perfetto.protos.ChromeConfig.ClientPriority client_priority = 4;
*/
clientPriority: ChromeConfig_ClientPriority;
/**
* Applicable only when using legacy JSON format.
* If |json_agent_label_filter| is not empty, only data pertaining to
* the specified tracing agent label (e.g. "traceEvents") will be returned.
*
* @generated from field: optional string json_agent_label_filter = 5;
*/
jsonAgentLabelFilter: string;
};
/**
* Describes the message perfetto.protos.ChromeConfig.
* Use `create(ChromeConfigSchema)` to create a new message.
*/
export const ChromeConfigSchema: GenMessage<ChromeConfig> = /*@__PURE__*/
messageDesc(file_protos_perfetto_config_chrome_chrome_config, 0);
/**
* Priority of the tracing session client. A higher priority session may
* preempt a lower priority one in configurations where concurrent sessions
* aren't supported.
*
* @generated from enum perfetto.protos.ChromeConfig.ClientPriority
*/
export enum ChromeConfig_ClientPriority {
/**
* @generated from enum value: UNKNOWN = 0;
*/
UNKNOWN = 0,
/**
* @generated from enum value: BACKGROUND = 1;
*/
BACKGROUND = 1,
/**
* @generated from enum value: USER_INITIATED = 2;
*/
USER_INITIATED = 2,
}
/**
* Describes the enum perfetto.protos.ChromeConfig.ClientPriority.
*/
export const ChromeConfig_ClientPrioritySchema: GenEnum<ChromeConfig_ClientPriority> = /*@__PURE__*/
enumDesc(file_protos_perfetto_config_chrome_chrome_config, 0, 0);