summaryrefslogtreecommitdiff
path: root/python/gras/query/chart_overhead_compare.js
diff options
context:
space:
mode:
Diffstat (limited to 'python/gras/query/chart_overhead_compare.js')
-rw-r--r--python/gras/query/chart_overhead_compare.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/python/gras/query/chart_overhead_compare.js b/python/gras/query/chart_overhead_compare.js
deleted file mode 100644
index 0ec9070..0000000
--- a/python/gras/query/chart_overhead_compare.js
+++ /dev/null
@@ -1,39 +0,0 @@
-function GrasChartOverheadCompare(args, panel)
-{
- //save enables
- this.ids = args.block_ids;
-
- //input checking
- if (this.ids.length <= 1) throw gras_error_dialog(
- "GrasChartOverheadCompare",
- "Error making overhead compare chart.\n"+
- "Specify at least 2 blocks for this chart."
- );
-
- //make new chart
- this.chart = new google.visualization.PieChart(panel);
-
- this.title = "Overhead Comparison";
- this.default_width = GRAS_CHARTS_STD_WIDTH;
-}
-
-GrasChartOverheadCompare.prototype.update = function(point)
-{
- var data_set = new Array();
- data_set.push(['Task', 'Percent']);
- $.each(this.ids, function(index, id)
- {
- var percents = gras_extract_percent_times(point, id);
- data_set.push([id, percents['total']]);
- });
-
- var data = google.visualization.arrayToDataTable(data_set)
-
- var options = {
- chartArea:{left:5,top:0,right:5,bottom:0,width:"100%",height:"100%"},
- };
- if (this.gc_resize) options.width = 50;
- if (this.gc_resize) options.height = 50;
-
- this.chart.draw(data, options);
-};