(source_root: Path, *, threads: bool = False)
| 180 | |
| 181 | @contextmanager |
| 182 | def 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 |