commit | 7ba39f99ba6432e3634eb50cdc000ddf22ad0aa7 | [log] [tgz] |
---|---|---|
author | Reka Norman <rekanorman@google.com> | Thu Nov 14 14:12:20 2024 +1100 |
committer | Reka Norman <rekanorman@google.com> | Thu Nov 14 14:23:58 2024 +1100 |
tree | 5ed83aaef54413da4fa2dac70404278a2f6f03b1 | |
parent | 136de5ccd7163261020064db944bb07bf5f5cf12 [diff] |
Make power counter always positive The current counter is negative when discharging, but it's more useful for the power counter, and therefore the average power metric derived from it, to always be positive. This is also consistent with other sources which report positive power regardless of charging/discharging, e.g. ODPM and Intel RAPL (not supported in perfetto yet). Bug: 378710178 Test: ui/run-dev-server, check batt.power_mw counter is positive even when current is negative. Change-Id: Ic68e35ee83413a177ac22ade758164acff621907
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.