Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
137
impl Drop for HardwareCounter {
Callers
2
start
Method · 0.80
end
Method · 0.80
Calls
1
sample
Method · 0.45
Tested by
no test coverage detected