perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
129 lines (111 loc) • 4.66 kB
text/typescript
//
// Copyright (C) 2024 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/windowmanager_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/android/windowmanager_config.proto.
*/
export const file_protos_perfetto_config_android_windowmanager_config: GenFile = /*@__PURE__*/
fileDesc("Cjlwcm90b3MvcGVyZmV0dG8vY29uZmlnL2FuZHJvaWQvd2luZG93bWFuYWdlcl9jb25maWcucHJvdG8SD3BlcmZldHRvLnByb3RvcyKTAwoTV2luZG93TWFuYWdlckNvbmZpZxJICg1sb2dfZnJlcXVlbmN5GAEgASgOMjEucGVyZmV0dG8ucHJvdG9zLldpbmRvd01hbmFnZXJDb25maWcuTG9nRnJlcXVlbmN5EkAKCWxvZ19sZXZlbBgCIAEoDjItLnBlcmZldHRvLnByb3Rvcy5XaW5kb3dNYW5hZ2VyQ29uZmlnLkxvZ0xldmVsIoQBCgxMb2dGcmVxdWVuY3kSHQoZTE9HX0ZSRVFVRU5DWV9VTlNQRUNJRklFRBAAEhcKE0xPR19GUkVRVUVOQ1lfRlJBTUUQARIdChlMT0dfRlJFUVVFTkNZX1RSQU5TQUNUSU9OEAISHQoZTE9HX0ZSRVFVRU5DWV9TSU5HTEVfRFVNUBADImkKCExvZ0xldmVsEhkKFUxPR19MRVZFTF9VTlNQRUNJRklFRBAAEhUKEUxPR19MRVZFTF9WRVJCT1NFEAESEwoPTE9HX0xFVkVMX0RFQlVHEAISFgoSTE9HX0xFVkVMX0NSSVRJQ0FMEAM");
/**
* Custom configuration for the "android.windowmanager" data source.
*
* @generated from message perfetto.protos.WindowManagerConfig
*/
export type WindowManagerConfig = Message<"perfetto.protos.WindowManagerConfig"> & {
/**
* @generated from field: optional perfetto.protos.WindowManagerConfig.LogFrequency log_frequency = 1;
*/
logFrequency: WindowManagerConfig_LogFrequency;
/**
* @generated from field: optional perfetto.protos.WindowManagerConfig.LogLevel log_level = 2;
*/
logLevel: WindowManagerConfig_LogLevel;
};
/**
* Describes the message perfetto.protos.WindowManagerConfig.
* Use `create(WindowManagerConfigSchema)` to create a new message.
*/
export const WindowManagerConfigSchema: GenMessage<WindowManagerConfig> = /*@__PURE__*/
messageDesc(file_protos_perfetto_config_android_windowmanager_config, 0);
/**
* @generated from enum perfetto.protos.WindowManagerConfig.LogFrequency
*/
export enum WindowManagerConfig_LogFrequency {
/**
* @generated from enum value: LOG_FREQUENCY_UNSPECIFIED = 0;
*/
UNSPECIFIED = 0,
/**
* Trace state snapshots when a frame is committed.
*
* @generated from enum value: LOG_FREQUENCY_FRAME = 1;
*/
FRAME = 1,
/**
* Trace state snapshots every time a transaction is committed.
*
* @generated from enum value: LOG_FREQUENCY_TRANSACTION = 2;
*/
TRANSACTION = 2,
/**
* Trace single state snapshots when the data source is started.
*
* @generated from enum value: LOG_FREQUENCY_SINGLE_DUMP = 3;
*/
SINGLE_DUMP = 3,
}
/**
* Describes the enum perfetto.protos.WindowManagerConfig.LogFrequency.
*/
export const WindowManagerConfig_LogFrequencySchema: GenEnum<WindowManagerConfig_LogFrequency> = /*@__PURE__*/
enumDesc(file_protos_perfetto_config_android_windowmanager_config, 0, 0);
/**
* @generated from enum perfetto.protos.WindowManagerConfig.LogLevel
*/
export enum WindowManagerConfig_LogLevel {
/**
* @generated from enum value: LOG_LEVEL_UNSPECIFIED = 0;
*/
UNSPECIFIED = 0,
/**
* Logs all elements with maximum amount of information.
*
* @generated from enum value: LOG_LEVEL_VERBOSE = 1;
*/
VERBOSE = 1,
/**
* Logs all elements but doesn't write all configuration data.
*
* @generated from enum value: LOG_LEVEL_DEBUG = 2;
*/
DEBUG = 2,
/**
* Logs only visible elements, with the minimum amount of performance
* overhead
*
* @generated from enum value: LOG_LEVEL_CRITICAL = 3;
*/
CRITICAL = 3,
}
/**
* Describes the enum perfetto.protos.WindowManagerConfig.LogLevel.
*/
export const WindowManagerConfig_LogLevelSchema: GenEnum<WindowManagerConfig_LogLevel> = /*@__PURE__*/
enumDesc(file_protos_perfetto_config_android_windowmanager_config, 0, 1);