Skip to content

Commit 7088eb0

Browse files
authored
Merge pull request #1533 from rust-lang/doc-dashboard
Display doc benchmarks in dashboard
2 parents 7b0698c + 444ddf6 commit 7088eb0

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

site/src/api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pub mod dashboard {
3838
pub check: Cases,
3939
pub debug: Cases,
4040
pub opt: Cases,
41+
pub doc: Cases,
4142
}
4243
}
4344

site/src/request_handlers/dashboard.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ pub async fn handle_dashboard(ctxt: Arc<SiteCtxt>) -> ServerResult<dashboard::Re
149149
check: by_profile.check,
150150
debug: by_profile.debug,
151151
opt: by_profile.opt,
152+
doc: by_profile.doc,
152153
})
153154
}
154155

site/static/dashboard.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<div id="check-average-times"></div>
1919
<div id="debug-average-times"></div>
2020
<div id="opt-average-times"></div>
21+
<div id="doc-average-times"></div>
2122
<div id="as-of"></div>
2223
<div style="text-align: center;">
2324
<a href="https://github.com/rust-lang/rustc-perf">Contribute on GitHub</a>
@@ -26,7 +27,7 @@
2627
<script>
2728

2829
function render(element, name, data, versions) {
29-
let articles = { "check": "a", "debug": "a", "opt": "an" };
30+
let articles = { "check": "a", "debug": "a", "opt": "an", "doc": "a" };
3031
new Highcharts.chart(document.getElementById(element), {
3132
chart: {
3233
zoomType: "xy",
@@ -74,6 +75,7 @@
7475
render("check-average-times", "check", data.check, data.versions);
7576
render("debug-average-times", "debug", data.debug, data.versions);
7677
render("opt-average-times", "opt", data.opt, data.versions);
78+
render("doc-average-times", "doc", data.doc, data.versions);
7779
}
7880

7981
function make_data() {

0 commit comments

Comments
 (0)