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:
John McCutchan 2016-03-03 13:58:10 -08:00
parent c51fcbf2b3
commit 3d5b6017c1

View file

@ -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,