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

Unified Diff: tools/profile.js

Issue 551062: Fix issue 571: display descriptive names for code objects from snapshot. (Closed)
Patch Set: Created 10 years, 11 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/profile.js
diff --git a/tools/profile.js b/tools/profile.js
index db4b542ff231af1390a8a253d59eb68645b31bcd..d41f5cd13b001f6733db94d358817acda54945a9 100644
--- a/tools/profile.js
+++ b/tools/profile.js
@@ -163,6 +163,16 @@ devtools.profiler.Profile.prototype.deleteCode = function(start) {
/**
+ * Retrieves a code entry by an address.
+ *
+ * @param {number} addr Entry address.
+ */
+devtools.profiler.Profile.prototype.findEntry = function(addr) {
+ return this.codeMap_.findEntry(addr);
+};
+
+
+/**
* Records a tick event. Stack must contain a sequence of
* addresses starting with the program counter value.
*
@@ -345,6 +355,14 @@ devtools.profiler.Profile.DynamicCodeEntry.prototype.getName = function() {
/**
+ * Returns raw node name (without type decoration).
+ */
+devtools.profiler.Profile.DynamicCodeEntry.prototype.getRawName = function() {
+ return this.name;
+};
+
+
+/**
* Constructs a call graph.
*
* @constructor
« src/serialize.cc ('K') | « src/snapshot-common.cc ('k') | tools/tickprocessor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698