Skip to main content

Module instrument

Module instrument 

Source
Expand description

Pass instruments. A BasePassInstrument is a PassInstrument whose hooks are callbacks, such as Rust closures, that a PassContext calls around each pass.

Structs§

BasePassInstrument
An instrument named name that calls the hooks it is created with: when a pass context is entered or exited, and before and after each pass.
BasePassInstrumentObj
The object behind BasePassInstrument.
PassInstrumentHooks
The hooks of a BasePassInstrument.

Functions§

pass_timing_instrument
Create an instrument that times the passes, for render_pass_timing (transform.instrument.MakePassTimingInstrument).
render_pass_timing
Render the pass times that a pass_timing_instrument recorded (transform.instrument.RenderTimePassProfiles).

Type Aliases§

PassContextHook
A hook of a BasePassInstrument, called when a pass context is entered or exited.
PassHook
A hook of a BasePassInstrument, called with a module and the information of the pass to run on it; Send + Sync like a PassContextHook.