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

Issue 73020: Implemented "no heap access" mode for JSFrame which is used for stack sampling in profiler. (Closed)

Created:
11 years, 8 months ago by Mikhail Naganov
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Implemented "no heap access" mode for JSFrame which is used for stack sampling in profiler. As I discovered that JSFrame accesses SharedFunctionInfo only to calculate caller SP and the latter is not used in profiler's stack sampling, I disabled accessing heap objects in JSFrame when doing stack sampling. This finally made V8's profiling stable when used from Chrome on a real web app. Committed: http://code.google.com/p/v8/source/detail?r=1694

Patch Set 1 #

Total comments: 2

Patch Set 2 : Renamings as Soeren suggested #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -24 lines) Patch
M src/frames.h View 1 2 chunks +9 lines, -2 lines 1 comment Download
M src/frames.cc View 1 4 chunks +4 lines, -7 lines 0 comments Download
M src/frames-arm.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/frames-ia32.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/frames-inl.h View 1 chunk +0 lines, -13 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mikhail Naganov
11 years, 8 months ago (2009-04-13 22:22:04 UTC) #1
Mikhail Naganov
+sgjesse
11 years, 8 months ago (2009-04-13 22:48:21 UTC) #2
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/73020/diff/1/6 File src/frames.h (right): http://codereview.chromium.org/73020/diff/1/6#newcode425 Line 425: void EnableNoHeapAccessMode() { no_heap_access_ = true; } ...
11 years, 8 months ago (2009-04-13 23:00:15 UTC) #3
Mikhail Naganov
http://codereview.chromium.org/73020/diff/1/6 File src/frames.h (right): http://codereview.chromium.org/73020/diff/1/6#newcode425 Line 425: void EnableNoHeapAccessMode() { no_heap_access_ = true; } On ...
11 years, 8 months ago (2009-04-13 23:10:26 UTC) #4
iposva
11 years, 8 months ago (2009-04-13 23:16:08 UTC) #5
Small comment to be addressed in a new change list may be. Otherwise LGTM.

-Ivan

http://codereview.chromium.org/73020/diff/8/13
File src/frames.h (right):

http://codereview.chromium.org/73020/diff/8/13#newcode422
Line 422: // A shortcoming is that caller's SP value will be calculated
incorrectly
Is there a way where you can ASSERT if the caller's SP is accessed in this mode?

Powered by Google App Engine
This is Rietveld 408576698