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

Issue 21410: Include all the code in code creation log events. The code object header size... (Closed)

Created:
11 years, 10 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Include all the code in code creation log events. The code object header size is now added to the size Before ticks the last instructions of a JavaScript functions ended up as unaccounted in the profile.Include ticks in the the last created code object in the profile.Show the unaccounted ticks in the profile as a percentage together with the rest. Added an option to ignore unaccounted ticks in the percentage calculation. Committed: http://code.google.com/p/v8/source/detail?r=1295

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -11 lines) Patch
M src/log.h View 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M src/log.cc View 1 4 chunks +14 lines, -4 lines 0 comments Download
M tools/linux-tick-processor.py View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M tools/tickprocessor.py View 1 2 3 4 4 chunks +19 lines, -3 lines 0 comments Download
M tools/windows-tick-processor.py View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Søren Thygesen Gjesse
11 years, 10 months ago (2009-02-18 08:27:41 UTC) #1
Mads Ager (chromium)
STV! Looking forward to having less unaccounted ticks! I noticed yesterday that I had a ...
11 years, 10 months ago (2009-02-18 08:31:28 UTC) #2
Mikhail Naganov
LGTM I see no problems here, except nits. http://codereview.chromium.org/21410/diff/1/5 File src/log.cc (right): http://codereview.chromium.org/21410/diff/1/5#newcode676 Line 676: ...
11 years, 10 months ago (2009-02-18 08:36:25 UTC) #3
iposva
Please consider using the proper accessors to get code start as outlined below. Thanks, -Ivan ...
11 years, 10 months ago (2009-02-18 09:08:41 UTC) #4
Søren Thygesen Gjesse
11 years, 10 months ago (2009-02-18 10:24:10 UTC) #5
http://codereview.chromium.org/21410/diff/1/5
File src/log.cc (right):

http://codereview.chromium.org/21410/diff/1/5#newcode676
Line 676: code->instruction_size() + Code::kHeaderSize);
On 2009/02/18 09:08:41, iposva wrote:
> This would be much simpler if you used code->instruction_start() and
> code->instruction_size() instead of doing the math here. In particular if ever
> the Code object changes its internal layout your calculation here is off.
> 
> This will also address Mikhail's comment.

Initially I went for instruction_start for all code events. However code-move
will report the object address, and we would have to do math there instead.

Added a function for doing the calculation with an assert for checking the
assumptions about the layout of the code object.

One need to run profiling in a debug build to hit the assertion though.

http://codereview.chromium.org/21410/diff/1/2
File tools/tickprocessor.py (right):

http://codereview.chromium.org/21410/diff/1/2#newcode153
Line 153: # Falg indicating whether to ignore unaccounted ticks in the report
On 2009/02/18 08:36:25, Mikhail Naganov wrote:
> typo: Flag

Done.

Powered by Google App Engine
This is Rietveld 408576698