Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mlco2/codecarbon
/ test_dram_option.py
File
test_dram_option.py
examples/rapl/test_dram_option.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
#!/usr/bin/env python3
2
""
"
3
Test script comparing CPU-only (package) vs CPU+DRAM power measurement.
4
This shows how rapl_include_dram=True gets closer to powerstat&
#x27;s readings.
Callers
nothing calls this directly
Calls
7
IntelRAPL
Class · 0.90
from_seconds
Method · 0.80
terminate
Method · 0.80
wait
Method · 0.80
kill
Method · 0.80
start
Method · 0.45
get_cpu_details
Method · 0.45
Tested by
no test coverage detected