Open codeastra2 opened 1 year ago
Hello,
Nice idea, CodeCarbon could be use as a command line tools with codecarbon monitor
. Maybe it could help ?
I think for your usecase we need to add an option to send the id of the process to monitor only the tests.
FYI, Python 2.7 is deprecated since January 2020 so Jython is probably dead...
Hi,
Yes command line tool I can use to implement, however even for that I would need to pip install right? I could still need some python support and manual steps of installation for that, if there is no other way I can do that but, is there a pure java solution for this? @benoit-cty. Thanks so much for your reply!
Hello, maybe you should have a look at https://github.com/aservet1/jRAPL?
@codeastra2 maybe you can check as well this https://github.com/mlco2/codecarbon/issues/436#issuecomment-1680234254
I managed to launch a background task in VSCode that launches codecarbon. Maybe there is a similar concept in intelIJ?
Note: this script still needs you to have installed python + codecarbon in your machine
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 am open to ideas on how to implement this , and will develop this . Please do let me know, thanks!