Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Commit 5d8a63a

Browse files
Sergey MishenkovRaphael Kubo da Costa
Sergey Mishenkov
authored and
Raphael Kubo da Costa
committed
Second part of patch for CPU Profile feature
Extending protocol.json by stackEntryLine that is used for total time annotations in CPU profiling
1 parent 73a2ab8 commit 5d8a63a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Source/core/inspector/ScriptProfile.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ static PassRefPtr<TypeBuilder::Profiler::CPUProfileNode> buildInspectorObjectFor
105105
.setColumnNumber(node->GetColumnNumber())
106106
.setHitCount(node->GetHitCount())
107107
.setCallUID(node->GetCallUid())
108+
.setStackEntryLine(node->GetSrcLine())
108109
.setChildren(children.release())
109110
.setPositionTicks(positionTicks.release())
110111
.setDeoptReason(node->GetBailoutReason())

Source/devtools/protocol.json

+1
Original file line numberDiff line numberDiff line change
@@ -3879,6 +3879,7 @@
38793879
{ "name": "columnNumber", "type": "integer", "description": "1-based column number of the function start position." },
38803880
{ "name": "hitCount", "type": "integer", "description": "Number of samples where this node was on top of the call stack." },
38813881
{ "name": "callUID", "type": "number", "description": "Call UID." },
3882+
{ "name": "stackEntryLine", "type": "integer", "description": "Hit line for entry in stack." },
38823883
{ "name": "children", "type": "array", "items": { "$ref": "CPUProfileNode" }, "description": "Child nodes." },
38833884
{ "name": "deoptReason", "type": "string", "description": "The reason of being not optimized. The function may be deoptimized or marked as don't optimize."},
38843885
{ "name": "id", "type": "integer", "description": "Unique id of the node." },

0 commit comments

Comments
 (0)