Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

www/graphdisplay: fix left-panel benchmark tree construction #734

Merged
merged 1 commit into from
Sep 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions asv/www/graphdisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,13 @@ $(document).ready(function() {
var cursor = [];
var stack = [tree];

/* Note: this relies on the fact that the benchmark names are
sorted. */
$.each($.asv.master_json.benchmarks, function(bm_name, bm) {
/* Sort keys for tree construction */
var benchmark_keys = Object.keys($.asv.master_json.benchmarks);
benchmark_keys.sort();

/* Build tree */
$.each(benchmark_keys, function(i, bm_name) {
var bm = $.asv.master_json.benchmarks[bm_name];
var parts = bm_name.split('.');
var i = 0;
var j;
Expand Down