From df99c278c77fcf6ef9d52585c1c746a366167fb8 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 30 Apr 2013 21:00:22 -0700 Subject: query: added allocator debug element --- python/gras/query/CMakeLists.txt | 1 + python/gras/query/chart_allocator_counts.js | 46 +++++++++++++++++++++++++++++ python/gras/query/chart_factory.js | 1 + python/gras/query/main.html | 1 + 4 files changed, 49 insertions(+) create mode 100644 python/gras/query/chart_allocator_counts.js (limited to 'python') diff --git a/python/gras/query/CMakeLists.txt b/python/gras/query/CMakeLists.txt index ab49532..a448068 100644 --- a/python/gras/query/CMakeLists.txt +++ b/python/gras/query/CMakeLists.txt @@ -20,6 +20,7 @@ INSTALL( chart_overall_throughput.js chart_handler_breakdown.js chart_total_io_counts.js + chart_allocator_counts.js main.css DESTINATION ${GR_PYTHON_DIR}/gras/query COMPONENT ${GRAS_COMP_PYTHON} diff --git a/python/gras/query/chart_allocator_counts.js b/python/gras/query/chart_allocator_counts.js new file mode 100644 index 0000000..cc06d24 --- /dev/null +++ b/python/gras/query/chart_allocator_counts.js @@ -0,0 +1,46 @@ +function GrasChartAllocatorCounts(args, panel) +{ + //input checking + if (args.block_ids.length != 0) throw gras_error_dialog( + "GrasChartAllocatorCounts", + "Error making allocator counts chart.\n"+ + "Do not specify any blocks for this chart." + ); + + //settings + this.div = $('
').attr({class:'chart_total_io_counts'}); + $(panel).append(this.div); + this.title = "Theron allocator counts" +} + +GrasChartAllocatorCounts.prototype.update = function(point) +{ + var ul = $('