perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
132 lines (114 loc) • 5.64 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/metrics/android/android_anomaly_metric.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/metrics/android/android_anomaly_metric.proto.
*/
export const file_protos_perfetto_metrics_android_android_anomaly_metric: GenFile = /*@__PURE__*/
fileDesc("Cjxwcm90b3MvcGVyZmV0dG8vbWV0cmljcy9hbmRyb2lkL2FuZHJvaWRfYW5vbWFseV9tZXRyaWMucHJvdG8SD3BlcmZldHRvLnByb3RvcyLbAwoUQW5kcm9pZEFub21hbHlNZXRyaWMSPAoGYmluZGVyGAEgASgLMiwucGVyZmV0dG8ucHJvdG9zLkFuZHJvaWRBbm9tYWx5TWV0cmljLkJpbmRlchp8Cg5Qcm9jZXNzQW5vbWFseRIUCgxwcm9jZXNzX25hbWUYASABKAkSCwoDcGlkGAIgASgNEjgKBHVuaXQYAyABKA4yKi5wZXJmZXR0by5wcm90b3MuQW5kcm9pZEFub21hbHlNZXRyaWMuVW5pdBINCgV2YWx1ZRgEIAEoDRrSAQoGQmluZGVyEmMKJW1heF9pbmNvbWluZ19wcm9jZXNzX2NvdW50X3Blcl9zZWNvbmQYASADKAsyNC5wZXJmZXR0by5wcm90b3MuQW5kcm9pZEFub21hbHlNZXRyaWMuUHJvY2Vzc0Fub21hbHkSYwolbWF4X291dGdvaW5nX3Byb2Nlc3NfY291bnRfcGVyX3NlY29uZBgCIAMoCzI0LnBlcmZldHRvLnByb3Rvcy5BbmRyb2lkQW5vbWFseU1ldHJpYy5Qcm9jZXNzQW5vbWFseSIyCgRVbml0EhQKEFVOSVRfVU5TUEVDSUZJRUQQABIUChBDT1VOVF9QRVJfU0VDT05EEAE");
/**
* Detects outlier scenarios in different Android Systems in a trace. For now, this just
* detects high binder transaction rates. In the future, there could be others
* like garbage_collection, CPU, broadcasts, etc.
*
* @generated from message perfetto.protos.AndroidAnomalyMetric
*/
export type AndroidAnomalyMetric = Message<"perfetto.protos.AndroidAnomalyMetric"> & {
/**
* @generated from field: optional perfetto.protos.AndroidAnomalyMetric.Binder binder = 1;
*/
binder?: AndroidAnomalyMetric_Binder;
};
/**
* Describes the message perfetto.protos.AndroidAnomalyMetric.
* Use `create(AndroidAnomalyMetricSchema)` to create a new message.
*/
export const AndroidAnomalyMetricSchema: GenMessage<AndroidAnomalyMetric> = /*@__PURE__*/
messageDesc(file_protos_perfetto_metrics_android_android_anomaly_metric, 0);
/**
* For anomalies related to a particular process.
*
* @generated from message perfetto.protos.AndroidAnomalyMetric.ProcessAnomaly
*/
export type AndroidAnomalyMetric_ProcessAnomaly = Message<"perfetto.protos.AndroidAnomalyMetric.ProcessAnomaly"> & {
/**
* @generated from field: optional string process_name = 1;
*/
processName: string;
/**
* @generated from field: optional uint32 pid = 2;
*/
pid: number;
/**
* @generated from field: optional perfetto.protos.AndroidAnomalyMetric.Unit unit = 3;
*/
unit: AndroidAnomalyMetric_Unit;
/**
* @generated from field: optional uint32 value = 4;
*/
value: number;
};
/**
* Describes the message perfetto.protos.AndroidAnomalyMetric.ProcessAnomaly.
* Use `create(AndroidAnomalyMetric_ProcessAnomalySchema)` to create a new message.
*/
export const AndroidAnomalyMetric_ProcessAnomalySchema: GenMessage<AndroidAnomalyMetric_ProcessAnomaly> = /*@__PURE__*/
messageDesc(file_protos_perfetto_metrics_android_android_anomaly_metric, 0, 0);
/**
* Binder subsystem outliers with the following aggegations:
* 1. Max incoming binder transaction count from each process over a one second sliding window.
* 2. Max outgoing binder transaction count from each process over a one second sliding window.
*
* @generated from message perfetto.protos.AndroidAnomalyMetric.Binder
*/
export type AndroidAnomalyMetric_Binder = Message<"perfetto.protos.AndroidAnomalyMetric.Binder"> & {
/**
* @generated from field: repeated perfetto.protos.AndroidAnomalyMetric.ProcessAnomaly max_incoming_process_count_per_second = 1;
*/
maxIncomingProcessCountPerSecond: AndroidAnomalyMetric_ProcessAnomaly[];
/**
* @generated from field: repeated perfetto.protos.AndroidAnomalyMetric.ProcessAnomaly max_outgoing_process_count_per_second = 2;
*/
maxOutgoingProcessCountPerSecond: AndroidAnomalyMetric_ProcessAnomaly[];
};
/**
* Describes the message perfetto.protos.AndroidAnomalyMetric.Binder.
* Use `create(AndroidAnomalyMetric_BinderSchema)` to create a new message.
*/
export const AndroidAnomalyMetric_BinderSchema: GenMessage<AndroidAnomalyMetric_Binder> = /*@__PURE__*/
messageDesc(file_protos_perfetto_metrics_android_android_anomaly_metric, 0, 1);
/**
* @generated from enum perfetto.protos.AndroidAnomalyMetric.Unit
*/
export enum AndroidAnomalyMetric_Unit {
/**
* @generated from enum value: UNIT_UNSPECIFIED = 0;
*/
UNIT_UNSPECIFIED = 0,
/**
* @generated from enum value: COUNT_PER_SECOND = 1;
*/
COUNT_PER_SECOND = 1,
}
/**
* Describes the enum perfetto.protos.AndroidAnomalyMetric.Unit.
*/
export const AndroidAnomalyMetric_UnitSchema: GenEnum<AndroidAnomalyMetric_Unit> = /*@__PURE__*/
enumDesc(file_protos_perfetto_metrics_android_android_anomaly_metric, 0, 0);