From 59a59fa8e725298613c55f01ef0c95c5e2e33707 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 7 Dec 2016 13:36:56 +0100 Subject: Update perf monitoring scripts to generate html/svg outputs --- bench/perf_monitoring/chart_footer.html | 37 +++++++++++++++++++ bench/perf_monitoring/chart_header.html | 46 ++++++++++++++++++++++++ bench/perf_monitoring/footer.html | 3 ++ bench/perf_monitoring/gemm/make_plot.sh | 63 +++++++++++++++++++++++++++++++-- bench/perf_monitoring/gemm/runall.sh | 33 ++++++++++++++++- bench/perf_monitoring/gemm/s1.js | 1 + bench/perf_monitoring/gemm/s2.js | 1 + bench/perf_monitoring/header.html | 42 ++++++++++++++++++++++ 8 files changed, 223 insertions(+), 3 deletions(-) create mode 100644 bench/perf_monitoring/chart_footer.html create mode 100644 bench/perf_monitoring/chart_header.html create mode 100644 bench/perf_monitoring/footer.html create mode 100644 bench/perf_monitoring/gemm/s1.js create mode 100644 bench/perf_monitoring/gemm/s2.js create mode 100644 bench/perf_monitoring/header.html (limited to 'bench') diff --git a/bench/perf_monitoring/chart_footer.html b/bench/perf_monitoring/chart_footer.html new file mode 100644 index 000000000..8acc69f14 --- /dev/null +++ b/bench/perf_monitoring/chart_footer.html @@ -0,0 +1,37 @@ + /* setup the chart and its options */ + var chart = nv.models.lineChart() + .color(d3.scale.category10().range()) + .margin({left: 75, bottom: 100}) + .forceX([0]).forceY([0]); + + chart.x(function(datum){ return datum.r; }) + .xAxis.options({ + axisLabel: customSettings.XLABEL || 'Changeset', + tickFormat: d3.format('.0f') + }); + chart.xAxis + .tickValues(changesets_count) + .tickFormat(function(d){return changesets[d]}) + .rotateLabels(-90); + + chart.y(function(datum){ return datum.v; }) + .yAxis.options({ + axisLabel: customSettings.YLABEL || 'GFlops'/*, + tickFormat: function(val){ return d3.format('.0f')(val) + ' GFlops'; }*/ + }); + + //chart.useInteractiveGuideline(true); + d3.select('#chart').datum(data).call(chart); + var plot = d3.select('#chart > g'); + + /* setup the title */ + plot.append('text') + .style('font-size', '24px') + .attr('text-anchor', 'middle').attr('x', '50%').attr('y', '20px') + .text(customSettings.TITLE || ''); + + /* ensure the chart is responsive */ + nv.utils.windowResize(chart.update); + + + \ No newline at end of file diff --git a/bench/perf_monitoring/chart_header.html b/bench/perf_monitoring/chart_header.html new file mode 100644 index 000000000..bb9ddffdd --- /dev/null +++ b/bench/perf_monitoring/chart_header.html @@ -0,0 +1,46 @@ + + + + + + + + + + + + +