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 5865fdb7f2ac04863c354007650cb674dd3f82c3..dfc12a51a5c9cdf9ad08076ac0f0ebd3ffa8c69a 100644 |
--- a/tools/deep_memory_profiler/visualizer/static/profiler.js |
+++ b/tools/deep_memory_profiler/visualizer/static/profiler.js |
@@ -59,6 +59,22 @@ Profiler.prototype.reparse = function() { |
}; |
/** |
+ * Get current breakdown template. |
+ * @return {Object} current breakdown template. |
+ */ |
+Profiler.prototype.getTemplate = function() { |
+ return this.template_; |
+}; |
+ |
+/** |
+ * Get run_id of current profiler. |
+ * @return {string} run_id of current profiler. |
+ */ |
+Profiler.prototype.getRunId = function() { |
+ return this.jsonData_['run_id']; |
+}; |
+ |
+/** |
* To be called by view when new model being selected. |
* And then triggers all relative views to update. |
*/ |