🚧 EARLY ACCESS: This extension is in active development. We encourage everyone to try it out and provide feedback to help us improve. Your input is invaluable in making this tool better for everyone. Please share your thoughts, report bugs, and suggest features on our GitHub Issues page.
This extension allows you to track the carbon emissions of your code directly from your VsCode. It uses the CodeCarbon package to estimate the carbon emissions of your code.
-
Track the carbon emissions of your code directly from your VsCode.
-
Save it into a csv file for further analysis.
The extension uses codecarbon
to measure the carbon emissions. This package connects to your hardware via specific APIs to get to know the power usage of your CPU/GPU/RAM. These APIs depend on the brand and OS. See https://mlco2.github.io/codecarbon/methodology.html#power-usage for the needed tools for your specific setup.
Note: if you do not install the requirements, codecarbon will track in fallback mode.
This extension contributes the following settings:
codecarbon.outputFileLocation
: The location of the output file. Default isuserHome
which will generate the.codecarbon.emissions.csv
file into the user home.codecarbon.launchOnStartup
: If true, the extension will start tracking the emissions when you open a new window. Defaults to true.
Some ideas on how to contribute to this extension:
- Testing: You can help by testing the extension and reporting any issues you find.
- Feedback: You can help by providing feedback on the extension. Feel free to open any issues or feature requests.
- Documentation: You can help by improving the documentation.
- Code: You can help by contributing code to the extension.
See CONTRIBUTING.md for more information..