Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mlco2/codecarbon
/ TestHandler
Class
TestHandler
tests/test_rapl_parameters.py:342–344 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
340
log_records = []
341
342
class
TestHandler(logging.Handler):
343
def
emit(self, record):
344
log_records.append(record)
345
346
test_handler = TestHandler()
347
test_handler.setLevel(logging.INFO)
Callers
2
test_rapl_include_dram_logs_message
Function · 0.70
test_rapl_prefer_psys_logs_message
Function · 0.70
Calls
no outgoing calls
Tested by
2
test_rapl_include_dram_logs_message
Function · 0.56
test_rapl_prefer_psys_logs_message
Function · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…