| /* |
| * 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; |
| // The average used power between the first and the last sampled |
| // energy data in miliwatt (mw) |
| optional double avg_used_power_mw = 3; |
| } |
| |
| // Energy data per Power Rail. |
| repeated PowerRails power_rails = 1; |
| |
| // The average used power between the first and last sampled rail across all |
| // the rails in milliwatts (mw). |
| optional double avg_total_used_power_mw = 2; |
| } |