Chromium Code Reviews

Unified Diff: tools/deep_memory_profiler/visualizer/static/profiler.js

Issue 23781012: Upload file to app engine and generate public url for dmprof visualizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add default_template attribute validation Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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;

Powered by Google App Engine