MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / ru_maxrss_bytes

Function ru_maxrss_bytes

benchmarks/run_benchmarks.py:167–170  ·  view source on GitHub ↗

ru_maxrss is bytes on macOS, KiB on Linux.

()

Source from the content-addressed store, hash-verified

165
166
167def ru_maxrss_bytes() -> int:
168 """ru_maxrss is bytes on macOS, KiB on Linux."""
169 r = resource.getrusage(resource.RUSAGE_CHILDREN).ru_maxrss
170 return r if sys.platform == "darwin" else r * 1024
171
172
173def run_timed(

Callers 1

run_timedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected