Skip to content

Commit

Permalink
feat: Add multiprocessing dict and sync execution for begin/end window
Browse files Browse the repository at this point in the history
- Introduced `MonitoringProcessState` dataclass to handle each multiprocessing process.
- Added `sync_execution` parameter to `begin_window` and `end_window` methods in `Metric` and its subclasses.
- Updated `EnergyHistogram`, `EnergyCumulativeCounter`, and `PowerGauge` to handle `sync_execution` dynamically.
- Modified `energy_monitoring_loop` and `power_monitoring_loop` to include process-safe handling.
- Improved process cleanup and error handling for monitoring windows.
  • Loading branch information
sharonsyh committed Dec 6, 2024
1 parent 0aa03d4 commit 0e0e63c
Showing 1 changed file with 154 additions and 114 deletions.
Loading

0 comments on commit 0e0e63c

Please sign in to comment.