/* * Copyright (C) 2019 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. */ syntax = "proto2"; package perfetto.protos; message AndroidPowerRails { // Energy data per Power Rail at given ts. message EnergyData { // Time since device boot(CLOCK_BOTTOMTIME) in milli-seconds. optional int64 timestamp_ms = 1; // Accumulated energy since device boot in microwatt-seconds(uws). optional double energy_uws = 2; } message PowerRails { // Name of the rail. optional string name = 1; // Energy data for given rail and for all samples in the trace. repeated EnergyData energy_data = 2; } // Energy data per Power Rail. repeated PowerRails power_rails = 1; }