EcoTrace - See the Carbon Cost of Every Function, Live in Your Editor.
EcoTrace brings real-time carbon footprint monitoring directly into VS Code. As you run your Python code, you see exactly how much CO2 each function emitted - displayed above the function, in your status bar, and compiled into a full PDF report. v1.0.1 is here. Now featuring AI-powered code optimization, carbon budget enforcement, and intuitive carbon equivalence metrics. Key Features in v1.0.1AI-Powered OptimizationClick the "AI Optimize" button directly above any function. EcoTrace will analyze your code's carbon footprint and suggest a greener, more energy-efficient implementation using Google Gemini AI. Carbon Budget GaugeA visual progress bar in the sidebar tracks your total session carbon against your set budget.
Human-Readable EquivalencesCarbon metrics are converted into relatable comparisons for better context:
Real-Time Metrics & CodeLensFunction-level carbon emissions appear directly above your code and update on every run.
🛠️ Getting Started1. Install the Python library
2. Instrument your functions
3. (Optional) Set up AI InsightsTo use the ✨ AI Optimize feature, add your Google Gemini API Key in VS Code Settings:
⚙️ Configuration
Requirements
RepositoryVisit the project on GitHub. EcoTrace - Carbon observability for developers who care about what their code actually costs. |
