commit | ebd211460135ee03ccac7156519b53d6f25bcd0e | [log] [tgz] |
---|---|---|
author | Chinglin Yu <chinglinyu@google.com> | Mon Feb 13 08:48:38 2023 +0000 |
committer | Ching-lin Yu <chinglinyu@google.com> | Mon Feb 13 08:51:54 2023 +0000 |
tree | a8c524face7009689be6491244e912735018f03e | |
parent | 5eb8123fa4b7322c0925a94d0d9a15b426890997 [diff] |
Calculate battery charge from energy and voltage Battery capacity can be reported in charge (in µAh) or energy (µWh) counters on linux sysfs. For batteries that report energy counters, record the energy and voltage values and convert to charge in the trace processor. Bug: 268144878 Change-Id: Ie892a36ffab14a1b994426197d7d788b79530103
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.