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

Method reset

pulley/src/profile.rs:161–165  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

159 }
160
161 fn reset(&mut self) {
162 self.data.truncate(0);
163 self.data.extend_from_slice(&[0; 4]);
164 self.samples = 0;
165 }
166}
167
168impl Default for Samples {

Callers 2

add_samplesMethod · 0.45
defaultMethod · 0.45

Calls 1

truncateMethod · 0.45

Tested by

no test coverage detected