mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
Adjust offset before querying inline information for samples that begin at exit frames
BUG= R=rmacnak@google.com Review URL: https://codereview.chromium.org/1762833002 .
This commit is contained in:
parent
c51fcbf2b3
commit
3d5b6017c1
1 changed files with 5 additions and 0 deletions
|
@ -1453,6 +1453,11 @@ class ProfileBuilder : public ValueObject {
|
|||
// Allocation samples skip the top frame, so the top frame's pc is
|
||||
// also a call's return address.
|
||||
offset--;
|
||||
} else if (!sample->first_frame_executing()) {
|
||||
// If the first frame wasn't executing code (i.e. we started to collect
|
||||
// the stack trace at an exit frame), the top frame's pc is also a
|
||||
// call's return address.
|
||||
offset--;
|
||||
}
|
||||
code.GetInlinedFunctionsAt(offset,
|
||||
&inlined_functions,
|
||||
|
|
Loading…
Reference in a new issue