Skip to content

Commit 637aa96

Browse files
committed
Site: add y-axis label/unit for task-clock
Use metric name as default label if there's no "pretty" label (instead of "Value")
1 parent e34790f commit 637aa96

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

site/static/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ <h3>This may take a while!</h3>
323323
let cacheStateNames = Object.keys(cacheStates);
324324
cacheStateNames.sort();
325325

326-
let yAxis = "Value";
326+
let yAxis = state.stat;
327327
let yAxisUnit = null;
328328
if (state.stat == "instructions:u") {
329329
yAxis = "CPU instructions";
@@ -332,7 +332,10 @@ <h3>This may take a while!</h3>
332332
yAxis = "CPU cycles";
333333
yAxisUnit = "count";
334334
} else if (state.stat == "cpu-clock") {
335-
yAxis = "CPU time";
335+
yAxis = "CPU clock";
336+
yAxisUnit = "seconds";
337+
} else if (state.stat == "task-clock") {
338+
yAxis = "Task clock";
336339
yAxisUnit = "seconds";
337340
} else if (state.stat == "wall-time") {
338341
yAxis = "Wall time";

0 commit comments

Comments
 (0)