Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Issue 18316004: Correctly report callstack when current function is FunctionCall builtin (Closed)

Created:
7 years, 5 months ago by yurys
Modified:
7 years, 5 months ago
Reviewers:
loislo, Jakob Kummerow
CC:
v8-dev, alph
Visibility:
Public.

Description

Correctly report callstack when current function is FunctionCall builtin When current function is FunctionCall builtin we have no reliable way to determine its caller function (in many cases the top of the sampled stack contains address of the caller but sometimes it does not). Instead of dropping the sample or its two top frames we simply mark the caller frame as '(unresolved function)'. It seems like a better approach that dropping whole sample as knowing the top function and the rest of the stack the user should be able to figure out what the caller was. This change adds builtin id to CodeEntry objects. It will be used later to add similar top frame analysis for FunctionApply and probably other builtins. BUG=None R=jkummerow@chromium.org, loislo@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15426

Patch Set 1 #

Patch Set 2 : Removed empty line #

Total comments: 5

Patch Set 3 : Use unresolved function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -25 lines) Patch
M src/cpu-profiler.h View 1 2 3 chunks +12 lines, -1 line 0 comments Download
M src/cpu-profiler.cc View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M src/cpu-profiler-inl.h View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M src/profile-generator.h View 1 2 4 chunks +9 lines, -1 line 0 comments Download
M src/profile-generator.cc View 1 2 4 chunks +41 lines, -23 lines 0 comments Download
M src/profile-generator-inl.h View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-cpu-profiler.cc View 1 2 1 chunk +77 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
yurys
7 years, 5 months ago (2013-07-01 11:49:43 UTC) #1
loislo
lgtm https://codereview.chromium.org/18316004/diff/2001/src/profile-generator.cc File src/profile-generator.cc (right): https://codereview.chromium.org/18316004/diff/2001/src/profile-generator.cc#newcode904 src/profile-generator.cc:904: // When current function is FunctionCall builtin tos ...
7 years, 5 months ago (2013-07-01 12:00:20 UTC) #2
Jakob Kummerow
lgtm https://codereview.chromium.org/18316004/diff/2001/src/cpu-profiler-inl.h File src/cpu-profiler-inl.h (right): https://codereview.chromium.org/18316004/diff/2001/src/cpu-profiler-inl.h#newcode63 src/cpu-profiler-inl.h:63: ASSERT(false); nit: we have UNREACHABLE(); for this. Or ...
7 years, 5 months ago (2013-07-01 12:16:05 UTC) #3
yurys
https://codereview.chromium.org/18316004/diff/2001/src/cpu-profiler-inl.h File src/cpu-profiler-inl.h (right): https://codereview.chromium.org/18316004/diff/2001/src/cpu-profiler-inl.h#newcode63 src/cpu-profiler-inl.h:63: ASSERT(false); On 2013/07/01 12:16:06, Jakob wrote: > nit: we ...
7 years, 5 months ago (2013-07-01 12:50:16 UTC) #4
yurys
It turned out that sometimes while we are in FunctionCall return address is not on ...
7 years, 5 months ago (2013-07-01 14:39:56 UTC) #5
loislo
lgtm
7 years, 5 months ago (2013-07-01 14:42:21 UTC) #6
yurys
7 years, 5 months ago (2013-07-01 14:58:12 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r15426 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698