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

Issue 23817003: Propagate bailout and dont_optimize reasons to cpu-profiler (Closed)

Created:
7 years, 3 months ago by loislo
Modified:
7 years, 3 months ago
CC:
v8-dev
Visibility:
Public.

Description

Functions may not be optimized and we would like to know in cpu profiler what was the reason. Current v8 implementation may disable optimization for a particular function or block it with help of dont_optimize flag. The patch propagates the reason of that to the SharedFunctionInfo where cpu profiler can get it. SharedFunctionInfo is a heap object so I extracted 8 bits from OptsCount for handling bailout reason code. BUG=none TEST=test-profile-generator/BailoutReason R=yangguo@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=16555

Patch Set 1 #

Total comments: 12

Patch Set 2 : comments addressed #

Patch Set 3 : update bailout reason in profiler when we get DisableOptimization call" #

Total comments: 6

Patch Set 4 : comments addressed #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -24 lines) Patch
M include/v8-profiler.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M src/ast.h View 1 2 3 6 chunks +14 lines, -2 lines 0 comments Download
M src/ast.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M src/cpu-profiler.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M src/full-codegen.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/heap.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/hydrogen.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/objects.h View 1 2 3 10 chunks +39 lines, -6 lines 2 comments Download
M src/objects.cc View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 3 chunks +23 lines, -2 lines 0 comments Download
M src/parser.cc View 1 2 3 4 chunks +5 lines, -0 lines 0 comments Download
M src/profile-generator.h View 3 chunks +6 lines, -0 lines 0 comments Download
M src/profile-generator.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M src/profile-generator-inl.h View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M test/cctest/test-profile-generator.cc View 1 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
yurys
https://codereview.chromium.org/23817003/diff/1/include/v8-profiler.h File include/v8-profiler.h (right): https://codereview.chromium.org/23817003/diff/1/include/v8-profiler.h#newcode63 include/v8-profiler.h:63: Handle<String> GetBailoutReason() const; Can we start returning const char* ...
7 years, 3 months ago (2013-09-02 14:40:04 UTC) #1
loislo
comments addressed https://codereview.chromium.org/23817003/diff/1/include/v8-profiler.h File include/v8-profiler.h (right): https://codereview.chromium.org/23817003/diff/1/include/v8-profiler.h#newcode63 include/v8-profiler.h:63: Handle<String> GetBailoutReason() const; On 2013/09/02 14:40:05, Yury ...
7 years, 3 months ago (2013-09-02 16:03:44 UTC) #2
loislo
7 years, 3 months ago (2013-09-02 16:31:00 UTC) #3
yurys
looks OK to me but I'm not familiar with that code.
7 years, 3 months ago (2013-09-03 08:20:49 UTC) #4
loislo
7 years, 3 months ago (2013-09-04 12:08:00 UTC) #5
Yang
Two small comments. Looks good so far, but I want to do a second more ...
7 years, 3 months ago (2013-09-04 15:18:56 UTC) #6
Benedikt Meurer
Looks good, but let's wait for Yang's second pass. https://codereview.chromium.org/23817003/diff/12001/src/objects.h File src/objects.h (right): https://codereview.chromium.org/23817003/diff/12001/src/objects.h#newcode1335 src/objects.h:1335: ...
7 years, 3 months ago (2013-09-05 07:42:11 UTC) #7
loislo
https://codereview.chromium.org/23817003/diff/12001/src/ast.h File src/ast.h (right): https://codereview.chromium.org/23817003/diff/12001/src/ast.h#newcode2840 src/ast.h:2840: } On 2013/09/04 15:18:56, Yang wrote: > you can ...
7 years, 3 months ago (2013-09-05 07:47:58 UTC) #8
Yang
https://codereview.chromium.org/23817003/diff/20001/src/objects.h File src/objects.h (right): https://codereview.chromium.org/23817003/diff/20001/src/objects.h#newcode1124 src/objects.h:1124: V(kExportDeclaration, "Export declaration") \ What do you need this ...
7 years, 3 months ago (2013-09-05 12:19:42 UTC) #9
loislo
https://codereview.chromium.org/23817003/diff/20001/src/objects.h File src/objects.h (right): https://codereview.chromium.org/23817003/diff/20001/src/objects.h#newcode1124 src/objects.h:1124: V(kExportDeclaration, "Export declaration") \ On 2013/09/05 12:19:42, Yang wrote: ...
7 years, 3 months ago (2013-09-05 12:44:44 UTC) #10
Yang
On 2013/09/05 12:44:44, loislo wrote: > https://codereview.chromium.org/23817003/diff/20001/src/objects.h > File src/objects.h (right): > > https://codereview.chromium.org/23817003/diff/20001/src/objects.h#newcode1124 > ...
7 years, 3 months ago (2013-09-05 12:49:18 UTC) #11
loislo
7 years, 3 months ago (2013-09-05 13:21:11 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 manually as r16555 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698