profile_energy
Record energy usage of a process or app and analyze per-component impact scores (CPU, GPU, network, display) and thermal state. Re-analyze existing traces for repeatability.
Instructions
Record and analyze energy usage using Energy Log. Returns: Energy impact scores (0–20 scale), per-component breakdown (CPU, GPU, network, display), thermal state. Best results on physical devices. Pass trace_path to re-analyze an existing trace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| process | No | Process name or PID to attach to | |
| launch_path | No | Path to .app bundle to launch | |
| device | No | Device name or UDID (physical device recommended) | |
| duration | No | Recording duration | 30s |
| trace_path | No | Path to existing .trace file to re-analyze (skips recording) |