MCPcopy Index your code
hub / github.com/python/cpython / label

Function label

Lib/profiling/tracing/__init__.py:139–143  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

137# ____________________________________________________________
138
139def label(code):
140 if isinstance(code, str):
141 return ('~', 0, code) # built-in functions ('~' sorts at the end)
142 else:
143 return (code.co_filename, code.co_firstlineno, code.co_name)
144
145# ____________________________________________________________
146

Callers 1

snapshot_statsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…