Files
VibeCoding/.agents/skills/perfetto-trace-analysis/references/hints_power.md

7 lines
1.0 KiB
Markdown

- When investigating overall battery drain, start by querying the power_rails track and summing the energy consumed (power_ma \* duration) for each rail name.
- To check if a device is sleeping correctly during screen-off periods, query the suspend_state track; a lack of time in "suspended" state indicates a wakefulness problem.
- To find the root cause of the device failing to suspend, query the kernel_wakelock track and aggregate the total duration for each wake lock name.
- If a top kernel wake lock name contains "bt_" or "bcm" (e.g., bt_host_wake), cross-reference its timing with events in the bluetooth_scan_results track.
- If the modem rail in power_rails shows high consumption, query the network_packets table and aggregate traffic volume by uid to identify the app.
- When analyzing network traffic from a shared uid, use the socket_tag associated with network packets for granular attribution.
- Convert impact into a common energy unit like milliwatt-hours (mWh) to compare the severity of different issues.