Support hardware counters (instructions, cache misses, ...) (#983)

* Add hardware counters to JSON exports

* Clarify Linux hardware counter setup
This commit is contained in:
David Peter authored and GitHub committed 2026-10-06 08:59:40 +02:00
1 parent ab86cb99cc
commit bc3a3f0524
13 files changed
+432 -34

No files matched your search

+10
View File
@@ -91,6 +91,16 @@ impl UnsafeRawValue for Information {
}
}
impl UnsafeRawValue for Ratio {
fn unsafe_raw_value(&self) -> f64 {
self.get::<ratio>()
}
fn unsafe_from_raw_value(value: f64) -> Self {
Ratio::new::<ratio>(value)
}
}
fn standard_deviation_f64(values: &[f64]) -> f64 {
let mean_value = mean(values.iter().copied());