-
Notifications
You must be signed in to change notification settings - Fork 1
Metrics

The Carbon Metrics panel provides tangible evidence of your sustainability impact through several organizational levels:
-
Workspace Summary:
The root node shows total CO₂ savings across your entire configured workspace, along with a breakdown by smell type. -
Directory-Level Metrics:
Each folder shows aggregated savings for all files within it, allowing you to identify which parts of your codebase are offering the most optimization potential. -
File-Specific Data:
Individual files display their contribution to the overall savings, with detailed type-by-type breakdowns.
All values are shown in kilograms of CO₂ equivalent, calculated based on:
- The computational complexity reduction from each refactoring
- Standardized emissions factors for Python operations
- Your local execution environment characteristics
To support sustainability reporting and progress tracking, EcoOptimizers allows exporting your metrics data:
- Click the three-dot menu in the Carbon Metrics panel
- Select "Export Metrics Data as JSON"
The generated JSON file contains:
- Timestamp of export
- Workspace configuration details
- Comprehensive metrics data (aggregate and per-file)
- Refactoring history with timestamps
This feature enables:
- Long-term tracking of your project's efficiency improvements
- Incorporation of code sustainability metrics into project reporting
- Sharing results with team members or stakeholders