perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
162 lines (141 loc) • 6.2 kB
text/typescript
//
// Copyright (C) 2022 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/irq_runtime_metric.proto (package perfetto.protos, syntax proto2)
/* eslint-disable */
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file protos/perfetto/metrics/android/irq_runtime_metric.proto.
*/
export const file_protos_perfetto_metrics_android_irq_runtime_metric: GenFile = /*@__PURE__*/
fileDesc("Cjhwcm90b3MvcGVyZmV0dG8vbWV0cmljcy9hbmRyb2lkL2lycV9ydW50aW1lX21ldHJpYy5wcm90bxIPcGVyZmV0dG8ucHJvdG9zIqMEChdBbmRyb2lkSXJxUnVudGltZU1ldHJpYxJJCgZod19pcnEYASABKAsyOS5wZXJmZXR0by5wcm90b3MuQW5kcm9pZElycVJ1bnRpbWVNZXRyaWMuSXJxUnVudGltZU1ldHJpYxJJCgZzd19pcnEYAiABKAsyOS5wZXJmZXR0by5wcm90b3MuQW5kcm9pZElycVJ1bnRpbWVNZXRyaWMuSXJxUnVudGltZU1ldHJpYxo1CghJcnFTbGljZRIQCghpcnFfbmFtZRgBIAEoCRIKCgJ0cxgCIAEoAxILCgNkdXIYAyABKAMaWQoPVGhyZXNob2xkTWV0cmljEhEKCXRocmVzaG9sZBgBIAEoCRIcChRvdmVyX3RocmVzaG9sZF9jb3VudBgCIAEoAxIVCg1hbm9tYWx5X3JhdGlvGAMgASgBGt8BChBJcnFSdW50aW1lTWV0cmljEhMKC21heF9ydW50aW1lGAEgASgDEhMKC3RvdGFsX2NvdW50GAIgASgDElIKEHRocmVzaG9sZF9tZXRyaWMYAyABKAsyOC5wZXJmZXR0by5wcm90b3MuQW5kcm9pZElycVJ1bnRpbWVNZXRyaWMuVGhyZXNob2xkTWV0cmljEk0KEmxvbmdlc3RfaXJxX3NsaWNlcxgEIAMoCzIxLnBlcmZldHRvLnByb3Rvcy5BbmRyb2lkSXJxUnVudGltZU1ldHJpYy5JcnFTbGljZQ");
/**
* measure max IRQ runtime and IRQ tasks running over threshold.
*
* @generated from message perfetto.protos.AndroidIrqRuntimeMetric
*/
export type AndroidIrqRuntimeMetric = Message<"perfetto.protos.AndroidIrqRuntimeMetric"> & {
/**
* metrics for hardirq and softirq
*
* @generated from field: optional perfetto.protos.AndroidIrqRuntimeMetric.IrqRuntimeMetric hw_irq = 1;
*/
hwIrq?: AndroidIrqRuntimeMetric_IrqRuntimeMetric;
/**
* @generated from field: optional perfetto.protos.AndroidIrqRuntimeMetric.IrqRuntimeMetric sw_irq = 2;
*/
swIrq?: AndroidIrqRuntimeMetric_IrqRuntimeMetric;
};
/**
* Describes the message perfetto.protos.AndroidIrqRuntimeMetric.
* Use `create(AndroidIrqRuntimeMetricSchema)` to create a new message.
*/
export const AndroidIrqRuntimeMetricSchema: GenMessage<AndroidIrqRuntimeMetric> = /*@__PURE__*/
messageDesc(file_protos_perfetto_metrics_android_irq_runtime_metric, 0);
/**
* @generated from message perfetto.protos.AndroidIrqRuntimeMetric.IrqSlice
*/
export type AndroidIrqRuntimeMetric_IrqSlice = Message<"perfetto.protos.AndroidIrqRuntimeMetric.IrqSlice"> & {
/**
* IRQ name
*
* @generated from field: optional string irq_name = 1;
*/
irqName: string;
/**
* timestamp
*
* @generated from field: optional int64 ts = 2;
*/
ts: bigint;
/**
* runtime of IRQ task
*
* @generated from field: optional int64 dur = 3;
*/
dur: bigint;
};
/**
* Describes the message perfetto.protos.AndroidIrqRuntimeMetric.IrqSlice.
* Use `create(AndroidIrqRuntimeMetric_IrqSliceSchema)` to create a new message.
*/
export const AndroidIrqRuntimeMetric_IrqSliceSchema: GenMessage<AndroidIrqRuntimeMetric_IrqSlice> = /*@__PURE__*/
messageDesc(file_protos_perfetto_metrics_android_irq_runtime_metric, 0, 0);
/**
* @generated from message perfetto.protos.AndroidIrqRuntimeMetric.ThresholdMetric
*/
export type AndroidIrqRuntimeMetric_ThresholdMetric = Message<"perfetto.protos.AndroidIrqRuntimeMetric.ThresholdMetric"> & {
/**
* Threshold value
*
* @generated from field: optional string threshold = 1;
*/
threshold: string;
/**
* over threshold count
*
* @generated from field: optional int64 over_threshold_count = 2;
*/
overThresholdCount: bigint;
/**
* anomaly ratio (over threshold count / total count)
*
* @generated from field: optional double anomaly_ratio = 3;
*/
anomalyRatio: number;
};
/**
* Describes the message perfetto.protos.AndroidIrqRuntimeMetric.ThresholdMetric.
* Use `create(AndroidIrqRuntimeMetric_ThresholdMetricSchema)` to create a new message.
*/
export const AndroidIrqRuntimeMetric_ThresholdMetricSchema: GenMessage<AndroidIrqRuntimeMetric_ThresholdMetric> = /*@__PURE__*/
messageDesc(file_protos_perfetto_metrics_android_irq_runtime_metric, 0, 1);
/**
* @generated from message perfetto.protos.AndroidIrqRuntimeMetric.IrqRuntimeMetric
*/
export type AndroidIrqRuntimeMetric_IrqRuntimeMetric = Message<"perfetto.protos.AndroidIrqRuntimeMetric.IrqRuntimeMetric"> & {
/**
* max runtime of IRQ tasks
*
* @generated from field: optional int64 max_runtime = 1;
*/
maxRuntime: bigint;
/**
* total IRQ tasks
*
* @generated from field: optional int64 total_count = 2;
*/
totalCount: bigint;
/**
* over threshold metric
*
* @generated from field: optional perfetto.protos.AndroidIrqRuntimeMetric.ThresholdMetric threshold_metric = 3;
*/
thresholdMetric?: AndroidIrqRuntimeMetric_ThresholdMetric;
/**
* information for top 10 IRQ tasks
*
* @generated from field: repeated perfetto.protos.AndroidIrqRuntimeMetric.IrqSlice longest_irq_slices = 4;
*/
longestIrqSlices: AndroidIrqRuntimeMetric_IrqSlice[];
};
/**
* Describes the message perfetto.protos.AndroidIrqRuntimeMetric.IrqRuntimeMetric.
* Use `create(AndroidIrqRuntimeMetric_IrqRuntimeMetricSchema)` to create a new message.
*/
export const AndroidIrqRuntimeMetric_IrqRuntimeMetricSchema: GenMessage<AndroidIrqRuntimeMetric_IrqRuntimeMetric> = /*@__PURE__*/
messageDesc(file_protos_perfetto_metrics_android_irq_runtime_metric, 0, 2);