Expand description
py-spy integration for remote Python stack dumps and profiles.
See PS-* and PP-* invariants in introspect module doc.
Structs§
- PySpy
Dump - Request a py-spy stack dump from this process.
- PySpy
Frame - A single frame in a py-spy stack trace.
- PySpy
Local Variable - A local variable captured in a py-spy frame.
- PySpy
Opts - Options controlling py-spy capture behavior.
- PySpy
Profile - Request a py-spy profile capture from this process.
- PySpy
Profile Opts - Public JSON-facing options for a py-spy profile capture.
- PySpy
Profile Worker - Short-lived child actor for profile capture. Separate from
PySpyWorker(PP-5). - PySpy
Runner - Runs py-spy against the current process.
- PySpy
Stack Trace - A single thread’s stack trace from py-spy
--jsonoutput. - PySpy
Worker - Short-lived child actor that runs py-spy off the ProcAgent
handler path. Spawned per-request; self-terminates after reply.
Concurrent instances are permitted — py-spy attaches read-only
via
process_vm_readvand multiple concurrent dumps are safe. - RunPy
SpyDump - Internal message from ProcAgent to a spawned PySpyWorker. Carries the original caller’s reply port so the worker responds directly without routing back through ProcAgent.
- RunPy
SpyProfile - Internal forwarded message for profile capture.
Enums§
- PySpy
Profile Result - Wire result of a py-spy profile capture. The HTTP handler
unwraps this to produce
image/svg+xmlorApiError. Not a public JSON contract. See PP-2, PP-3. - PySpy
Result - Result of a py-spy stack dump request.
Traits§
- PySpy
Dump Client - The custom client trait for this message type.
- PySpy
Dump Handler - The custom handler trait for this message type.
- PySpy
Profile Client - The custom client trait for this message type.
- PySpy
Profile Handler - The custom handler trait for this message type.