MCPcopy
hub / github.com/tinygrad/tinygrad / profile_marker

Function profile_marker

tinygrad/helpers.py:367–368  ·  view source on GitHub ↗
(name:str, color="gray")

Source from the content-addressed store, hash-verified

365 if PROFILE and display: cpu_events.append(res)
366
367def profile_marker(name:str, color="gray") -> None:
368 cpu_events.append(ProfilePointEvent("TINY", "marker", None, {"name":name, "color":color}))
369
370if getenv("DEBUG_GC"):
371 gc_start: decimal.Decimal = perf_counter_us()

Callers 7

mainFunction · 0.90
test_python_markerMethod · 0.90
test_free_lastMethod · 0.90
train_llama3Function · 0.90
flat_llama.pyFile · 0.90

Calls 2

ProfilePointEventClass · 0.85
appendMethod · 0.80

Tested by 3

test_python_markerMethod · 0.72
test_free_lastMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…