perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
151 lines (128 loc) • 5.19 kB
text/typescript
//
// 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/metrics/android/io_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/io_metric.proto.
*/
export const file_protos_perfetto_metrics_android_io_metric: GenFile = /*@__PURE__*/
fileDesc("Ci9wcm90b3MvcGVyZmV0dG8vbWV0cmljcy9hbmRyb2lkL2lvX21ldHJpYy5wcm90bxIPcGVyZmV0dG8ucHJvdG9zIs4DCglBbmRyb2lkSW8SRwoSZjJmc19jb3VudGVyX3N0YXRzGAEgAygLMisucGVyZmV0dG8ucHJvdG9zLkFuZHJvaWRJby5GMmZzQ291bnRlclN0YXRzEkMKEGYyZnNfd3JpdGVfc3RhdHMYAiADKAsyKS5wZXJmZXR0by5wcm90b3MuQW5kcm9pZElvLkYyZnNXcml0ZVN0YXRzGnAKEEYyZnNDb3VudGVyU3RhdHMSDAoEbmFtZRgBIAEoCRILCgNtYXgYAiABKAESCwoDc3VtGAMgASgBEgsKA21pbhgFIAEoARILCgNkdXIYBiABKAMSDQoFY291bnQYByABKAMSCwoDYXZnGAggASgBGsABCg5GMmZzV3JpdGVTdGF0cxIZChF0b3RhbF93cml0ZV9jb3VudBgBIAEoAxIaChJkaXN0aW5jdF9wcm9jZXNzZXMYAiABKAMSGwoTdG90YWxfYnl0ZXNfd3JpdHRlbhgDIAEoAxIdChVkaXN0aW5jdF9kZXZpY2VfY291bnQYBCABKAMSHAoUZGlzdGluY3RfaW5vZGVfY291bnQYBSABKAMSHQoVZGlzdGluY3RfdGhyZWFkX2NvdW50GAYgASgD");
/**
* Measure Android IO stats in a trace.
* Note: This is an aggregated metric, for unaggregated metrics look at
* AndroidIoUnaggregated in io_unagg_metric.proto.
*
* @generated from message perfetto.protos.AndroidIo
*/
export type AndroidIo = Message<"perfetto.protos.AndroidIo"> & {
/**
* @generated from field: repeated perfetto.protos.AndroidIo.F2fsCounterStats f2fs_counter_stats = 1;
*/
f2fsCounterStats: AndroidIo_F2fsCounterStats[];
/**
* @generated from field: repeated perfetto.protos.AndroidIo.F2fsWriteStats f2fs_write_stats = 2;
*/
f2fsWriteStats: AndroidIo_F2fsWriteStats[];
};
/**
* Describes the message perfetto.protos.AndroidIo.
* Use `create(AndroidIoSchema)` to create a new message.
*/
export const AndroidIoSchema: GenMessage<AndroidIo> = /*@__PURE__*/
messageDesc(file_protos_perfetto_metrics_android_io_metric, 0);
/**
* Next id: 3
* Stats for Counters in an f2fs file system.
* Counters are available for various operations.
*
* @generated from message perfetto.protos.AndroidIo.F2fsCounterStats
*/
export type AndroidIo_F2fsCounterStats = Message<"perfetto.protos.AndroidIo.F2fsCounterStats"> & {
/**
* @generated from field: optional string name = 1;
*/
name: string;
/**
* @generated from field: optional double max = 2;
*/
max: number;
/**
* @generated from field: optional double sum = 3;
*/
sum: number;
/**
* @generated from field: optional double min = 5;
*/
min: number;
/**
* @generated from field: optional int64 dur = 6;
*/
dur: bigint;
/**
* @generated from field: optional int64 count = 7;
*/
count: bigint;
/**
* @generated from field: optional double avg = 8;
*/
avg: number;
};
/**
* Describes the message perfetto.protos.AndroidIo.F2fsCounterStats.
* Use `create(AndroidIo_F2fsCounterStatsSchema)` to create a new message.
*/
export const AndroidIo_F2fsCounterStatsSchema: GenMessage<AndroidIo_F2fsCounterStats> = /*@__PURE__*/
messageDesc(file_protos_perfetto_metrics_android_io_metric, 0, 0);
/**
* Aggregated stats for write operations in an f2fs file system.
*
* @generated from message perfetto.protos.AndroidIo.F2fsWriteStats
*/
export type AndroidIo_F2fsWriteStats = Message<"perfetto.protos.AndroidIo.F2fsWriteStats"> & {
/**
* @generated from field: optional int64 total_write_count = 1;
*/
totalWriteCount: bigint;
/**
* @generated from field: optional int64 distinct_processes = 2;
*/
distinctProcesses: bigint;
/**
* @generated from field: optional int64 total_bytes_written = 3;
*/
totalBytesWritten: bigint;
/**
* @generated from field: optional int64 distinct_device_count = 4;
*/
distinctDeviceCount: bigint;
/**
* @generated from field: optional int64 distinct_inode_count = 5;
*/
distinctInodeCount: bigint;
/**
* @generated from field: optional int64 distinct_thread_count = 6;
*/
distinctThreadCount: bigint;
};
/**
* Describes the message perfetto.protos.AndroidIo.F2fsWriteStats.
* Use `create(AndroidIo_F2fsWriteStatsSchema)` to create a new message.
*/
export const AndroidIo_F2fsWriteStatsSchema: GenMessage<AndroidIo_F2fsWriteStats> = /*@__PURE__*/
messageDesc(file_protos_perfetto_metrics_android_io_metric, 0, 1);