Index: tools/codemap.js |
diff --git a/tools/codemap.js b/tools/codemap.js |
index af511f6422f6f29ce7d9465f0f09434fb7eae65e..8eb2acbc2a458a9012e99fd360caa3885d482e44 100644 |
--- a/tools/codemap.js |
+++ b/tools/codemap.js |
@@ -196,6 +196,18 @@ devtools.profiler.CodeMap.prototype.findEntry = function(addr) { |
/** |
+ * Returns a dynamic code entry using its starting address. |
+ * |
+ * @param {number} addr Address. |
+ */ |
+devtools.profiler.CodeMap.prototype.findDynamicEntryByStartAddress = |
+ function(addr) { |
+ var node = this.dynamics_.find(addr); |
+ return node ? node.value : null; |
+}; |
+ |
+ |
+/** |
* Returns an array of all dynamic code entries. |
*/ |
devtools.profiler.CodeMap.prototype.getAllDynamicEntries = function() { |