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

Issue 112036: Introduce Logger::LogCompiledFunctions that logs current map of compiled code. (Closed)

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

Description

Introduce Logger::LogCompiledFunctions that logs current map of compiled code. The goal is to make possible having --prof flag always enabled in Chromium. Currently we can't do this because --prof causes compiler and gc to log code creations / moves / deletes which aren't needed until we start profiling. With LogCompiledFunctions it will be possible not to log anything until we start profiling. When started, the current map of compiled functions will be logged and compiler / gc logging will be enabled to update current state. When profling is stopped, logging will be turned off again. Funny that testing code is actually much longer and complex than function code. Committed: http://code.google.com/p/v8/source/detail?r=2009

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixed Soeren's comments #

Total comments: 2

Patch Set 3 : struct -> class #

Unified diffs Side-by-side diffs Delta from patch set Stats (+444 lines, -7 lines) Patch
M src/compiler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/log.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/log.cc View 1 1 chunk +63 lines, -0 lines 0 comments Download
M test/cctest/test-log.cc View 1 2 3 chunks +376 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mikhail Naganov
11 years, 7 months ago (2009-05-19 12:06:17 UTC) #1
Søren Thygesen Gjesse
Please address the allocation issues in the heap traversal. http://codereview.chromium.org/112036/diff/1/3 File src/log.cc (right): http://codereview.chromium.org/112036/diff/1/3#newcode1117 Line ...
11 years, 7 months ago (2009-05-19 12:40:14 UTC) #2
Mikhail Naganov
Thanks for useful comments! http://codereview.chromium.org/112036/diff/1/3 File src/log.cc (right): http://codereview.chromium.org/112036/diff/1/3#newcode1117 Line 1117: // new compiled code, ...
11 years, 7 months ago (2009-05-19 15:39:23 UTC) #3
Søren Thygesen Gjesse
LGTM! This is a nice change. http://codereview.chromium.org/112036/diff/1003/2006 File test/cctest/test-log.cc (right): http://codereview.chromium.org/112036/diff/1003/2006#newcode159 Line 159: struct ParseLogResult ...
11 years, 7 months ago (2009-05-19 18:48:24 UTC) #4
Mikhail Naganov
11 years, 7 months ago (2009-05-20 09:03:31 UTC) #5
http://codereview.chromium.org/112036/diff/1003/2006
File test/cctest/test-log.cc (right):

http://codereview.chromium.org/112036/diff/1003/2006#newcode159
Line 159: struct ParseLogResult {
On 2009/05/19 18:48:24, Søren Gjesse wrote:
> Why not a class?

Yes, this in no more a POD. Fixed.

Powered by Google App Engine
This is Rietveld 408576698