Index: tools/profile.js |
diff --git a/tools/profile.js b/tools/profile.js |
index de9c42c5b1100c67d840690bbe63a845db0a2866..21d9d22a5e365834fc6f0e93818320db77edada9 100644 |
--- a/tools/profile.js |
+++ b/tools/profile.js |
@@ -509,11 +509,18 @@ Profile.DynamicFuncCodeEntry = function(size, type, func, state) { |
Profile.DynamicFuncCodeEntry.STATE_PREFIX = ["", "~", "*"]; |
/** |
+ * Returns state. |
+ */ |
+Profile.DynamicFuncCodeEntry.prototype.getState = function() { |
+ return Profile.DynamicFuncCodeEntry.STATE_PREFIX[this.state]; |
+}; |
+ |
+/** |
* Returns node name. |
*/ |
Profile.DynamicFuncCodeEntry.prototype.getName = function() { |
var name = this.func.getName(); |
- return this.type + ': ' + Profile.DynamicFuncCodeEntry.STATE_PREFIX[this.state] + name; |
+ return this.type + ': ' + this.getState() + name; |
}; |