diff options
author | Josh Blum | 2013-04-30 18:40:22 -0700 |
---|---|---|
committer | Josh Blum | 2013-04-30 18:40:22 -0700 |
commit | e085418e9299af5590157d3abe61bd0a3c3ed93d (patch) | |
tree | acd969e50124d7bce60eee182856adcee5380903 | |
parent | ea9e1357a550d1291fe145e4842d154674159533 (diff) | |
parent | 8457fa1c98db480745766b0074ef43c16f187544 (diff) | |
download | sandhi-e085418e9299af5590157d3abe61bd0a3c3ed93d.tar.gz sandhi-e085418e9299af5590157d3abe61bd0a3c3ed93d.tar.bz2 sandhi-e085418e9299af5590157d3abe61bd0a3c3ed93d.zip |
Merge branch 'master' into theron6_work
Conflicts:
Theron
m--------- | PMC | 0 | ||||
m--------- | grextras | 0 | ||||
-rw-r--r-- | python/gras/query/chart_factory.js | 3 | ||||
-rw-r--r-- | python/gras/query/chart_handler_breakdown.js | 4 | ||||
-rw-r--r-- | python/gras/query/chart_overall_throughput.js | 4 | ||||
-rw-r--r-- | python/gras/query/chart_overhead_compare.js | 4 | ||||
-rw-r--r-- | python/gras/query/chart_total_io_counts.js | 4 |
7 files changed, 9 insertions, 10 deletions
diff --git a/PMC b/PMC -Subproject 09f9ae45cf42f32a2a00e4cc39c9856aa3128bc +Subproject 5624c0ab79dd53c51879070b86b833f315a2f38 diff --git a/grextras b/grextras -Subproject baad45ff699786f1416f09c6beaad4eb99f0745 +Subproject 04671348be0c359c763a828e9be734fc204cbb6 diff --git a/python/gras/query/chart_factory.js b/python/gras/query/chart_factory.js index e4382d3..122d222 100644 --- a/python/gras/query/chart_factory.js +++ b/python/gras/query/chart_factory.js @@ -126,10 +126,9 @@ function gras_chart_factory_make(registry, args) tr.append(td); //call into the factory - args.panel = td.get(0); try { - var chart = new registry.chart_factories[args.chart_type](args); + var chart = new registry.chart_factories[args.chart_type](args, td.get(0)); } catch(err) { diff --git a/python/gras/query/chart_handler_breakdown.js b/python/gras/query/chart_handler_breakdown.js index 459c2d3..5f76d1d 100644 --- a/python/gras/query/chart_handler_breakdown.js +++ b/python/gras/query/chart_handler_breakdown.js @@ -1,4 +1,4 @@ -function GrasChartHandlerBreakdown(args) +function GrasChartHandlerBreakdown(args, panel) { //input checking if (args.block_ids.length != 1) throw gras_error_dialog( @@ -11,7 +11,7 @@ function GrasChartHandlerBreakdown(args) this.block_id = args.block_ids[0]; //make new chart - this.chart = new google.visualization.PieChart(args.panel); + this.chart = new google.visualization.PieChart(panel); this.title = "Handler Breakdown - " + this.block_id; this.default_width = GRAS_CHARTS_STD_WIDTH; diff --git a/python/gras/query/chart_overall_throughput.js b/python/gras/query/chart_overall_throughput.js index 280c10a..6d66e40 100644 --- a/python/gras/query/chart_overall_throughput.js +++ b/python/gras/query/chart_overall_throughput.js @@ -1,4 +1,4 @@ -function GrasChartOverallThroughput(args) +function GrasChartOverallThroughput(args, panel) { //save enables this.ids = args.block_ids; @@ -11,7 +11,7 @@ function GrasChartOverallThroughput(args) ); //make new chart - this.chart = new google.visualization.LineChart(args.panel); + this.chart = new google.visualization.LineChart(panel); this.title = "Overall Throughput vs Time in MIps"; this.history = new Array(); diff --git a/python/gras/query/chart_overhead_compare.js b/python/gras/query/chart_overhead_compare.js index 9ad324c..0ec9070 100644 --- a/python/gras/query/chart_overhead_compare.js +++ b/python/gras/query/chart_overhead_compare.js @@ -1,4 +1,4 @@ -function GrasChartOverheadCompare(args) +function GrasChartOverheadCompare(args, panel) { //save enables this.ids = args.block_ids; @@ -11,7 +11,7 @@ function GrasChartOverheadCompare(args) ); //make new chart - this.chart = new google.visualization.PieChart(args.panel); + this.chart = new google.visualization.PieChart(panel); this.title = "Overhead Comparison"; this.default_width = GRAS_CHARTS_STD_WIDTH; diff --git a/python/gras/query/chart_total_io_counts.js b/python/gras/query/chart_total_io_counts.js index f959414..2aa8a84 100644 --- a/python/gras/query/chart_total_io_counts.js +++ b/python/gras/query/chart_total_io_counts.js @@ -1,4 +1,4 @@ -function GrasChartTotalIoCounts(args) +function GrasChartTotalIoCounts(args, panel) { //input checking if (args.block_ids.length != 1) throw gras_error_dialog( @@ -10,7 +10,7 @@ function GrasChartTotalIoCounts(args) //settings this.block_id = args.block_ids[0]; this.div = $('<div />').attr({class:'chart_total_io_counts'}); - $(args.panel).append(this.div); + $(panel).append(this.div); this.title = "I/O Totals - " + this.block_id; } |