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.