perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
96 lines • 3.61 kB
TypeScript
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import type { ProtoLogLevel } from "../../common/protolog_common_pb";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file protos/perfetto/config/android/protolog_config.proto.
*/
export declare const file_protos_perfetto_config_android_protolog_config: GenFile;
/**
* 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 declare const ProtoLogConfigSchema: GenMessage<ProtoLogConfig>;
/**
* @generated from enum perfetto.protos.ProtoLogConfig.TracingMode
*/
export declare 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 declare const ProtoLogConfig_TracingModeSchema: GenEnum<ProtoLogConfig_TracingMode>;
/**
* @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 declare const ProtoLogGroupSchema: GenMessage<ProtoLogGroup>;
//# sourceMappingURL=protolog_config_pb.d.ts.map