mlco2 / mlco2/codecarbon

Codecrbon for Java Code emission tracking?

Open
#426 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
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

  1. 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 .
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.