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

Method add

cranelift/codegen/src/timing.rs:165–170  ·  view source on GitHub ↗

Add `other` to the timings of this `PassTimes`.

(&mut self, other: &Self)

Source from the content-addressed store, hash-verified

163 impl PassTimes {
164 /// Add `other` to the timings of this `PassTimes`.
165 pub fn add(&mut self, other: &Self) {
166 for (a, b) in self.pass.iter_mut().zip(&other.pass[..]) {
167 a.total += b.total;
168 a.child += b.child;
169 }
170 }
171
172 /// Returns the total amount of time taken by all the passes measured.
173 pub fn total(&self) -> Duration {

Callers 10

run_targetMethod · 0.45
joinMethod · 0.45
runMethod · 0.45
allocateMethod · 0.45
allocate_segmentMethod · 0.45
allocateMethod · 0.45
split_off_return_blockFunction · 0.45
create_blocksFunction · 0.45
get_raw_mutMethod · 0.45

Calls 1

iter_mutMethod · 0.45

Tested by 1

run_targetMethod · 0.36