commit | 819ef1ab66524d46dad7a2032ed481807bda53eb | [log] [tgz] |
---|---|---|
author | Chinglin Yu <chinglinyu@google.com> | Mon Nov 15 22:25:05 2021 +0800 |
committer | Chinglin Yu <chinglinyu@google.com> | Mon Nov 15 22:25:05 2021 +0800 |
tree | eb6445e17b6019b95bd18d2bdfa8b79c9c27d68d | |
parent | d99b5d2fadb9e7a9194d69ab76f39cb5be96ba1f [diff] |
traced_probes: Implement BatteryCounters for CrOS and Linux CrOS and Linux doesn't have the Android hwbinder for getting battery counters. Implement data source "linux.sysfs_power" that reads the counters from sysfs (e.g. /sys/class/power_supply/BAT0) entries: * capacity: battery capacity in percentage. * charge_now: the current coloumb counter value in uAh. * current_now: the current in uA. * current_avg: the smoothed (average over a period) current in uA. Bug: 204738136 Change-Id: I8f9ddff84967e3a823e83381dee8031720b7ab26
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.