MCPcopy Create free account
hub / github.com/mlco2/codecarbon / kill

Method kill

tests/cli/test_monitor.py:140–141  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138 process_info["terminated"] += 1
139
140 def kill(self):
141 process_info["killed"] += 1
142
143 monkeypatch.setattr(monitor_module, "EmissionsTracker", FakeTracker)
144 monkeypatch.setattr(monitor_module.subprocess, "Popen", FakePopen)

Callers 4

run_and_monitorFunction · 0.80
test_rapl_fix.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected