UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

134 lines (118 loc) 5.34 kB
// // Copyright (C) 2023 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/android/protolog_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 { ProtoLogLevel } from "../../common/protolog_common_pb"; import { file_protos_perfetto_common_protolog_common } from "../../common/protolog_common_pb"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file protos/perfetto/config/android/protolog_config.proto. */ export const file_protos_perfetto_config_android_protolog_config: GenFile = /*@__PURE__*/ fileDesc("CjRwcm90b3MvcGVyZmV0dG8vY29uZmlnL2FuZHJvaWQvcHJvdG9sb2dfY29uZmlnLnByb3RvEg9wZXJmZXR0by5wcm90b3Mi+AEKDlByb3RvTG9nQ29uZmlnEjcKD2dyb3VwX292ZXJyaWRlcxgBIAMoCzIeLnBlcmZldHRvLnByb3Rvcy5Qcm90b0xvZ0dyb3VwEkEKDHRyYWNpbmdfbW9kZRgCIAEoDjIrLnBlcmZldHRvLnByb3Rvcy5Qcm90b0xvZ0NvbmZpZy5UcmFjaW5nTW9kZRI+ChZkZWZhdWx0X2xvZ19mcm9tX2xldmVsGAMgASgOMh4ucGVyZmV0dG8ucHJvdG9zLlByb3RvTG9nTGV2ZWwiKgoLVHJhY2luZ01vZGUSCwoHREVGQVVMVBAAEg4KCkVOQUJMRV9BTEwQASJxCg1Qcm90b0xvZ0dyb3VwEhIKCmdyb3VwX25hbWUYASABKAkSMAoIbG9nX2Zyb20YAiABKA4yHi5wZXJmZXR0by5wcm90b3MuUHJvdG9Mb2dMZXZlbBIaChJjb2xsZWN0X3N0YWNrdHJhY2UYAyABKAg", [file_protos_perfetto_common_protolog_common]); /** * Custom configuration for the "android.protolog" data source. * ProtoLog is a logging mechanism that is intented to be more efficient than * logcat. This configures what logs to capture in the tracing instance. * * @generated from message perfetto.protos.ProtoLogConfig */ export type ProtoLogConfig = Message<"perfetto.protos.ProtoLogConfig"> & { /** * Specified the configurations for each of the logging groups. If none is * specified for a group the defaults will be used. * * @generated from field: repeated perfetto.protos.ProtoLogGroup group_overrides = 1; */ groupOverrides: ProtoLogGroup[]; /** * Specified what tracing mode to use for the tracing instance. * * @generated from field: optional perfetto.protos.ProtoLogConfig.TracingMode tracing_mode = 2; */ tracingMode: ProtoLogConfig_TracingMode; /** * If set, any message with log level higher than this level (inclusive) will * be traced. Group overrides take precedence over this value. * * @generated from field: optional perfetto.protos.ProtoLogLevel default_log_from_level = 3; */ defaultLogFromLevel: ProtoLogLevel; }; /** * Describes the message perfetto.protos.ProtoLogConfig. * Use `create(ProtoLogConfigSchema)` to create a new message. */ export const ProtoLogConfigSchema: GenMessage<ProtoLogConfig> = /*@__PURE__*/ messageDesc(file_protos_perfetto_config_android_protolog_config, 0); /** * @generated from enum perfetto.protos.ProtoLogConfig.TracingMode */ export enum ProtoLogConfig_TracingMode { /** * When using the DEFAULT tracing mode, only log groups and levels specified * in the group_overrides are traced. * * @generated from enum value: DEFAULT = 0; */ DEFAULT = 0, /** * When using the ENABLE_ALL tracing mode, all log groups and levels are * traced, unless specified in the group_overrides. * * @generated from enum value: ENABLE_ALL = 1; */ ENABLE_ALL = 1, } /** * Describes the enum perfetto.protos.ProtoLogConfig.TracingMode. */ export const ProtoLogConfig_TracingModeSchema: GenEnum<ProtoLogConfig_TracingMode> = /*@__PURE__*/ enumDesc(file_protos_perfetto_config_android_protolog_config, 0, 0); /** * @generated from message perfetto.protos.ProtoLogGroup */ export type ProtoLogGroup = Message<"perfetto.protos.ProtoLogGroup"> & { /** * The ProtoLog group name this configuration entry applies to. * * @generated from field: optional string group_name = 1; */ groupName: string; /** * Specify the level from which to start capturing protologs. * e.g. if ProtoLogLevel.WARN is specified only warning, errors and fatal log * message will be traced. * * @generated from field: optional perfetto.protos.ProtoLogLevel log_from = 2; */ logFrom: ProtoLogLevel; /** * When set to true we will collect the stacktrace for each protolog message * in this group that we are tracing. * * @generated from field: optional bool collect_stacktrace = 3; */ collectStacktrace: boolean; }; /** * Describes the message perfetto.protos.ProtoLogGroup. * Use `create(ProtoLogGroupSchema)` to create a new message. */ export const ProtoLogGroupSchema: GenMessage<ProtoLogGroup> = /*@__PURE__*/ messageDesc(file_protos_perfetto_config_android_protolog_config, 1);