Skip to content

Commit 7b0698c

Browse files
authored
Merge pull request #1531 from rust-lang/graphs-doc
Add support for `doc` benchmarks to graphs page
2 parents 3d625ef + 1932351 commit 7b0698c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

site/src/request_handlers/graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ fn create_summary(
177177
let mut summary_benchmark = HashMap::new();
178178
let summary_query_cases = iproduct!(
179179
ctxt.summary_scenarios(),
180-
vec![Profile::Check, Profile::Debug, Profile::Opt]
180+
vec![Profile::Check, Profile::Debug, Profile::Opt, Profile::Doc]
181181
);
182182
for (scenario, profile) in summary_query_cases {
183183
let baseline = match baselines.entry((profile, scenario)) {

site/static/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ <h3>This may take a while!</h3>
102102

103103
const otherCacheStateColors = ["#8085e9", "#f15c80", "#e4d354", "#2b908f", "#f45b5b", "#91e8e1"];
104104
const interpolatedColor = "#fcb0f1";
105-
const basicProfiles = ["Check", "Debug", "Opt"];
105+
const profiles = ["Check", "Debug", "Opt", "Doc"];
106106

107107
function tooltipPlugin({ onclick, commits, isInterpolated, absoluteMode, shiftX = 10, shiftY = 10 }) {
108108
let tooltipLeftOffset = 0;
@@ -385,7 +385,7 @@ <h3>This may take a while!</h3>
385385

386386
let plotOpts = genPlotOpts({
387387
title: benchName + "-" + benchKind,
388-
width: Math.floor(window.innerWidth / 3) - 16,
388+
width: Math.floor(window.innerWidth / 4) - 16,
389389
height: 300,
390390
yAxisLabel,
391391
series: seriesOpts,
@@ -426,7 +426,7 @@ <h3>This may take a while!</h3>
426426
sortedBenchNames.forEach(name => {
427427
benchmarks[name] = {};
428428

429-
for (let profile of basicProfiles) {
429+
for (let profile of profiles) {
430430
if (data.benchmarks[name].hasOwnProperty(profile)) {
431431
benchmarks[name][profile.toLowerCase()] = optInterpolated(data.benchmarks[name][profile]);
432432
}

0 commit comments

Comments
 (0)