Skip to content

Commit

Permalink
Refactor metric initialization and multiprocessing logic in metric.py
Browse files Browse the repository at this point in the history
- Changed metric instantiation to accept CPU and GPU indices directly instead of class objects.
- Improved multiprocessing logic to address and fix pickle-related errors.
- Added consistent handling for sync_execution across begin_window and end_window calls for all metrics.
- Centralized bucket range validation and default handling for EnergyHistogram.
- Improved error handling and logging for multiprocessing processes.
- Standardized Prometheus metric labels (e.g., window and index) across Histogram, Counter, and Gauge.
- Updated docstrings for consistency and clarity across all Metric subclasses.
  • Loading branch information
sharonsyh committed Nov 29, 2024
1 parent 1b9e541 commit 26e925e
Showing 1 changed file with 210 additions and 165 deletions.
Loading

0 comments on commit 26e925e

Please sign in to comment.