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

Method start_pass

cranelift/codegen/src/timing.rs:263–271  ·  view source on GitHub ↗
(&self, pass: Pass)

Source from the content-addressed store, hash-verified

261
262 impl Profiler for DefaultProfiler {
263 fn start_pass(&self, pass: Pass) -> Box<dyn Any> {
264 let prev = CURRENT_PASS.with(|p| p.replace(pass));
265 log::debug!("timing: Starting {pass}, (during {prev})");
266 Box::new(DefaultTimingToken {
267 start: monotonic_instant(),
268 pass,
269 prev,
270 })
271 }
272 }
273
274 /// A timing token is responsible for timing the currently running pass. Timing starts when it

Callers 1

start_passFunction · 0.80

Calls 4

monotonic_instantFunction · 0.85
newFunction · 0.50
withMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected