Index: tools/logreader.js |
diff --git a/tools/logreader.js b/tools/logreader.js |
index 88ab907740d5dc3807431bc53aa50865208bb1db..20a1f54444b70c0ae3993f1cf355cc407afad602 100644 |
--- a/tools/logreader.js |
+++ b/tools/logreader.js |
@@ -139,11 +139,12 @@ devtools.profiler.LogReader.prototype.processLogChunk = function(chunk) { |
* Processes stack record. |
* |
* @param {number} pc Program counter. |
+ * @param {number} func JS Function. |
* @param {Array.<string>} stack String representation of a stack. |
* @return {Array.<number>} Processed stack. |
*/ |
-devtools.profiler.LogReader.prototype.processStack = function(pc, stack) { |
- var fullStack = [pc]; |
+devtools.profiler.LogReader.prototype.processStack = function(pc, func, stack) { |
+ var fullStack = func ? [pc, func] : [pc]; |
var prevFrame = pc; |
for (var i = 0, n = stack.length; i < n; ++i) { |
var frame = stack[i]; |