Codecrbon for Java Code emission tracking?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 323
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 12
Description
I want to implement a new feature: using codecarbon for tracking java code emissions, java code is very widely adopted and many developers would like to get stats on the emission stats of the java programs.
In particular I wanted to develop a plugin in intellij when running the unit/integration tests we would also get the carbon emissions by running these tests, I think it will be a very useful feature.
Implementation
- I was looking at Jython interpreter to install the codecarbon package and thereupon call the tracking start and stop functions from the java code to track the emissions .
- However, jython only supports till python2.7 and codecarbon is from python 3 I believe so this approach seems not possible.
I am open to ideas on how to implement this , and will develop this . Please do let me know, thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The proposal names an IntelliJ plugin and Java unit/integration tests but no repository files, entry points, or existing tests. Start by reviewing how CodeCarbon integrates with non-Python workloads and how IntelliJ test execution could be extended. Done would require an agreed implementation design and emission tracking for the specified Java test runs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, python
- Domain
- devtools, testing-qa
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100