MCPcopy Create free account
hub / github.com/BerriAI/litellm / profile_python

Function profile_python

tests/rust-python-harness/shared/tracing/profiler.py:182–185  ·  view source on GitHub ↗
(source_root: Path, *, threads: bool = False)

Source from the content-addressed store, hash-verified

180
181@contextmanager
182def profile_python(source_root: Path, *, threads: bool = False) -> Generator[PythonProfiler]:
183 profiler: Final = PythonProfiler(source_root)
184 with _installed_profiler(profiler, threads=threads):
185 yield profiler
186
187
188@contextmanager

Calls 2

PythonProfilerClass · 0.85
_installed_profilerFunction · 0.85