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

Method num_samples

pulley/src/profile.rs:153–155  ·  view source on GitHub ↗

Returns the number of samples that have been collected.

(&self)

Source from the content-addressed store, hash-verified

151
152 /// Returns the number of samples that have been collected.
153 pub fn num_samples(&self) -> u32 {
154 self.samples
155 }
156
157 fn finalize(&mut self) {
158 self.data[..4].copy_from_slice(&self.samples.to_le_bytes());

Callers 1

sampling_threadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected