Index: tools/deep_memory_profiler/visualizer/static/profiler.js |
diff --git a/tools/deep_memory_profiler/visualizer/static/profiler.js b/tools/deep_memory_profiler/visualizer/static/profiler.js |
index 8e311aa3b6916c0cb7999635e785e0e32b2b44fc..5865fdb7f2ac04863c354007650cb674dd3f82c3 100644 |
--- a/tools/deep_memory_profiler/visualizer/static/profiler.js |
+++ b/tools/deep_memory_profiler/visualizer/static/profiler.js |
@@ -6,10 +6,10 @@ |
* This class provides data access interface for dump file profiler. |
* @constructor |
*/ |
-var Profiler = function(jsonData) { |
+var Profiler = function(jsonData, template) { |
this.jsonData_ = jsonData; |
// Initialize template with templates information. |
- this.template_ = jsonData.templates['l2']; |
+ this.template_ = template || jsonData.templates['l2']; |
// Initialize selected category, and nothing selected at first. |
this.selected_ = null; |