MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / start_pass

Function start_pass

cranelift/codegen/src/timing.rs:144–146  ·  view source on GitHub ↗

Start timing `pass` as a child of the currently running pass, if any. This function is called by the publicly exposed pass functions.

(pass: Pass)

Source from the content-addressed store, hash-verified

142 ///
143 /// This function is called by the publicly exposed pass functions.
144 pub fn start_pass(pass: Pass) -> Box<dyn Any> {
145 PROFILER.with(|profiler| profiler.borrow().start_pass(pass))
146 }
147
148 /// Accumulated timing information for a single pass.
149 #[derive(Default, Copy, Clone)]

Callers

nothing calls this directly

Calls 4

start_passMethod · 0.80
newFunction · 0.50
withMethod · 0.45
borrowMethod · 0.45

Tested by

no test coverage detected