perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
107 lines (94 loc) • 5.03 kB
text/typescript
//
// Copyright (C) 2021 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/trace/power/android_energy_estimation_breakdown.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 { AndroidEnergyConsumerDescriptor } from "../../common/android_energy_consumer_descriptor_pb";
import { file_protos_perfetto_common_android_energy_consumer_descriptor } from "../../common/android_energy_consumer_descriptor_pb";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file protos/perfetto/trace/power/android_energy_estimation_breakdown.proto.
*/
export const file_protos_perfetto_trace_power_android_energy_estimation_breakdown: GenFile = /*@__PURE__*/
fileDesc("CkVwcm90b3MvcGVyZmV0dG8vdHJhY2UvcG93ZXIvYW5kcm9pZF9lbmVyZ3lfZXN0aW1hdGlvbl9icmVha2Rvd24ucHJvdG8SD3BlcmZldHRvLnByb3RvcyLAAgogQW5kcm9pZEVuZXJneUVzdGltYXRpb25CcmVha2Rvd24SVAoaZW5lcmd5X2NvbnN1bWVyX2Rlc2NyaXB0b3IYASABKAsyMC5wZXJmZXR0by5wcm90b3MuQW5kcm9pZEVuZXJneUNvbnN1bWVyRGVzY3JpcHRvchIaChJlbmVyZ3lfY29uc3VtZXJfaWQYAiABKAUSEgoKZW5lcmd5X3V3cxgDIAEoAxJfChFwZXJfdWlkX2JyZWFrZG93bhgEIAMoCzJELnBlcmZldHRvLnByb3Rvcy5BbmRyb2lkRW5lcmd5RXN0aW1hdGlvbkJyZWFrZG93bi5FbmVyZ3lVaWRCcmVha2Rvd24aNQoSRW5lcmd5VWlkQnJlYWtkb3duEgsKA3VpZBgBIAEoBRISCgplbmVyZ3lfdXdzGAIgASgD", [file_protos_perfetto_common_android_energy_consumer_descriptor]);
/**
* Energy data retrieve using the ODPM(On Device Power Monitor) API.
* This proto represents the aidl class:
* android.hardware.power.stats.EnergyConsumerResult.
*
* @generated from message perfetto.protos.AndroidEnergyEstimationBreakdown
*/
export type AndroidEnergyEstimationBreakdown = Message<"perfetto.protos.AndroidEnergyEstimationBreakdown"> & {
/**
* The first trace packet of each session should include a energy consumer
* descriptor.
*
* @generated from field: optional perfetto.protos.AndroidEnergyConsumerDescriptor energy_consumer_descriptor = 1;
*/
energyConsumerDescriptor?: AndroidEnergyConsumerDescriptor;
/**
* ID of the AndroidEnergyConsumer associated with this result. Matches
* the energy_consumer_id in the AndroidEnergyConsumerDescriptor that
* should be sent at the beginning of a trace.
*
* @generated from field: optional int32 energy_consumer_id = 2;
*/
energyConsumerId: number;
/**
* Total accumulated energy since boot in microwatt-seconds (uWs)
*
* @generated from field: optional int64 energy_uws = 3;
*/
energyUws: bigint;
/**
* Optional attributed energy per Android ID / Linux UID for this
* EnergyConsumer. Sum total of attributed energy must be less than or equal
* to total accumulated energy.
*
* @generated from field: repeated perfetto.protos.AndroidEnergyEstimationBreakdown.EnergyUidBreakdown per_uid_breakdown = 4;
*/
perUidBreakdown: AndroidEnergyEstimationBreakdown_EnergyUidBreakdown[];
};
/**
* Describes the message perfetto.protos.AndroidEnergyEstimationBreakdown.
* Use `create(AndroidEnergyEstimationBreakdownSchema)` to create a new message.
*/
export const AndroidEnergyEstimationBreakdownSchema: GenMessage<AndroidEnergyEstimationBreakdown> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_power_android_energy_estimation_breakdown, 0);
/**
* @generated from message perfetto.protos.AndroidEnergyEstimationBreakdown.EnergyUidBreakdown
*/
export type AndroidEnergyEstimationBreakdown_EnergyUidBreakdown = Message<"perfetto.protos.AndroidEnergyEstimationBreakdown.EnergyUidBreakdown"> & {
/**
* Android ID/Linux UID, the accumulated energy is attributed to.
*
* @generated from field: optional int32 uid = 1;
*/
uid: number;
/**
* Accumulated energy since boot in microwatt-seconds (uWs).
*
* @generated from field: optional int64 energy_uws = 2;
*/
energyUws: bigint;
};
/**
* Describes the message perfetto.protos.AndroidEnergyEstimationBreakdown.EnergyUidBreakdown.
* Use `create(AndroidEnergyEstimationBreakdown_EnergyUidBreakdownSchema)` to create a new message.
*/
export const AndroidEnergyEstimationBreakdown_EnergyUidBreakdownSchema: GenMessage<AndroidEnergyEstimationBreakdown_EnergyUidBreakdown> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_power_android_energy_estimation_breakdown, 0, 0);