Skip to content

Commit 5ab804d

Browse files
committed
Add context switches metric
1 parent 863d2be commit 5ab804d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

site/src/comparison.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,28 +186,31 @@ pub enum Metric {
186186
Instructions,
187187
#[serde(rename = "cycles:u")]
188188
Cycles,
189-
#[serde(rename = "faults")]
189+
#[serde(rename = "faults:u")]
190190
Faults,
191191
#[serde(rename = "max-rss")]
192192
MaxRSS,
193-
#[serde(rename = "task-clock")]
193+
#[serde(rename = "task-clock:u")]
194194
TaskClock,
195195
#[serde(rename = "wall-time")]
196196
WallTime,
197-
#[serde(rename = "cpu-clock")]
197+
#[serde(rename = "cpu-clock:u")]
198198
CpuClock,
199+
#[serde(rename = "context-switches:u")]
200+
ContextSwitches,
199201
}
200202

201203
impl Metric {
202204
pub fn as_str(&self) -> &'static str {
203205
match self {
204206
Self::Instructions => "instructions:u",
205207
Self::Cycles => "cycles:u",
206-
Self::Faults => "faults",
208+
Self::Faults => "faults:u",
207209
Self::MaxRSS => "max-rss",
208-
Self::TaskClock => "task-clock",
210+
Self::TaskClock => "task-clock:u",
209211
Self::WallTime => "wall-time",
210-
Self::CpuClock => "cpu-clock",
212+
Self::CpuClock => "cpu-clock:u",
213+
Self::ContextSwitches => "context-switches:u",
211214
}
212215
}
213216

0 commit comments

Comments
 (0)