This PR adds functionality to the codecarbon monitor command.
When you run codecarbon monitor, the previous behavior is kept the same.
When you run codecarbon monitor -- some positional --arguments -lah, the positional arguments are ran as a subprocess and monitored with the option tracking_mode="process".
Resolves https://github.com/mlco2/codecarbon/issues/382
This PR adds functionality to the
codecarbon monitor
command.When you run
codecarbon monitor
, the previous behavior is kept the same.When you run
codecarbon monitor -- some positional --arguments -lah
, the positional arguments are ran as a subprocess and monitored with the optiontracking_mode="process"
.