MCPcopy Create free account
hub / github.com/hashintel/hash / sample_or_panic

Method sample_or_panic

libs/darwin-kperf/criterion/src/pmc.rs:128–134  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

126 }
127
128 fn sample_or_panic(&self) -> u64 {
129 let [count] = self.thread.sample().unwrap_or_else(|error| {
130 panic!("failed to read counter: {error}");
131 });
132
133 count
134 }
135}
136
137impl Drop for HardwareCounter {

Callers 2

startMethod · 0.80
endMethod · 0.80

Calls 1

sampleMethod · 0.45

Tested by

no test coverage detected