For details on tracing, see Tracing And Profiling.
Switching Between Greenlets: Passing Objects and Control
C API Reference