Commit aa63adb
Add post-processing and integrate fb_power into perf hooks (#500)
Summary:
Pull Request resolved: #500
The diff stack enables power-telemetry tracing for Benchpress plugins and supports the following platforms: **T1_CPL, T1_MLN, T1_BGM, T1_TRN, and T11_GRC_ARM**.
- **Task:** T248954685
- **Claude CLI prompts:**
- `design.md` (P2203208599)
- `implementation.md` (P2203210057)
- **Related older diffs:**
- D73953894
- D92542871
**Summary**
Adds a **post-processing pipeline** to the `fb_power` monitor and wires it into **perf hooks** so power results can be computed automatically after collection. The post-processing engine reads `power.csv` and emits normalized outputs using **platform-specific sensor-mapping configuration**.
**Changes**
- Add `fb_power/post_process.py` implementing `PowerPostProcessor`
- Add/extend `constants.py` with per-platform sensor-mapping config used by post-processing
- Update `perf.py` to invoke `fb_power` with `post_process` enabled (plumb/forward the flag as needed)
- Update `BUCK` targets to include `post_process.py`
- Export `PowerPostProcessor` from `__init__.py` for external use
Differential Revision: D945429271 parent 83a83cf commit aa63adb
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments