Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

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

Issue 24534002: Add share button to generate public url for dmprof visualizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
*/

Powered by Google App Engine
This is Rietveld 408576698