Function py_spy

Source
pub async fn py_spy(
    pid: i32,
    native: bool,
    native_all: bool,
    blocking: bool,
) -> Result<PySpyTrace, Error>
Expand description

Run py-spy and return the stack trace. Py-spy is run has a subprocess to avoid any bad side effects specially when running in non-blocking mode which risks segfaulting py-spy process.