MCPcopy Index your code
hub / github.com/ray-project/ray / _pprint_suspect

Function _pprint_suspect

python/ray/util/debug.py:279–288  ·  view source on GitHub ↗
(suspect)

Source from the content-addressed store, hash-verified

277
278
279def _pprint_suspect(suspect):
280 print(
281 "Most suspicious memory allocation in traceback "
282 "(only printing out this one, but all (less suspicious)"
283 " suspects will be investigated as well):"
284 )
285 print("\n".join(suspect.traceback.format()))
286 print(f"Increase total={suspect.memory_increase}B")
287 print(f"Slope={suspect.slope} B/detection")
288 print(f"Rval={suspect.rvalue}")

Callers 1

Calls 3

printFunction · 0.85
joinMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…