Skip to main content

Module profiler

Module profiler 

Source

Functionsยง

detect_python
Detect the Python executable name available on this system. Tries python3 first (Linux/macOS convention), then falls back to python. Returns an error if neither is found.
profile_input
Profile Python code using the built-in cProfile via a Python subprocess. Uses a default of 100 iterations.
profile_input_with_iterations
Profile Python code with a configurable iteration count. Wraps profile_input_core with the given loop count.