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

Issue 39179: Adding support for reporting addresses of JIT compiled code to OProfile (Closed)

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

Description

Adding support for reporting addresses of JIT compiled code to OProfile. Please be warned that current gHardy versions have OProfile 0.9.3 which doesn't have JIT API. You need to install OProfile 0.9.4 with a 32-bit version of opagent library. Instructions are on the internal Wiki page: http://wiki/Main/V8UsingOProfile Committed: http://code.google.com/p/v8/source/detail?r=1426

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixes according to Kasper's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -25 lines) Patch
M SConstruct View 4 chunks +10 lines, -1 line 0 comments Download
M src/SConscript View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler.cc View 1 4 chunks +15 lines, -4 lines 0 comments Download
M src/flag-definitions.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/log.h View 2 chunks +2 lines, -4 lines 0 comments Download
M src/log.cc View 1 4 chunks +4 lines, -15 lines 0 comments Download
M src/objects.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
A src/oprofile-agent.h View 1 1 chunk +68 lines, -0 lines 0 comments Download
A src/oprofile-agent.cc View 1 1 chunk +111 lines, -0 lines 0 comments Download
M src/v8.cc View 1 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mikhail Naganov
11 years, 9 months ago (2009-03-05 08:43:29 UTC) #1
Kasper Lund
LGTM. Biggest concern is the atexit call from within V8. http://codereview.chromium.org/39179/diff/1/8 File src/objects.h (right): http://codereview.chromium.org/39179/diff/1/8#newcode2263 ...
11 years, 9 months ago (2009-03-05 10:20:53 UTC) #2
Mikhail Naganov
11 years, 9 months ago (2009-03-05 10:51:03 UTC) #3
http://codereview.chromium.org/39179/diff/1/8
File src/objects.h (right):

http://codereview.chromium.org/39179/diff/1/8#newcode2263
Line 2263: int ObjectSize() {
On 2009/03/05 10:20:53, Kasper Lund wrote:
> This name is probably too generic since it doesn't include the entire object
> (reloc info, scope info, and padding does not count). It's not really the
entire
> size of the object.

Renamed to "ExecutableSize", since it is the size of the executable area of the
object.

http://codereview.chromium.org/39179/diff/1/9
File src/oprofile-agent.cc (right):

http://codereview.chromium.org/39179/diff/1/9#newcode44
Line 44: // Disable code moving by GC
On 2009/03/05 10:20:53, Kasper Lund wrote:
> Terminate comment with .

Done.

http://codereview.chromium.org/39179/diff/1/10
File src/oprofile-agent.h (right):

http://codereview.chromium.org/39179/diff/1/10#newcode60
Line 60: // Size of the buffer that is used for composing code areas names
On 2009/03/05 10:20:53, Kasper Lund wrote:
> Terminate comment with .

Done.

http://codereview.chromium.org/39179/diff/1/11
File src/v8.cc (right):

http://codereview.chromium.org/39179/diff/1/11#newcode93
Line 93: atexit(V8::TearDown);
On 2009/03/05 10:20:53, Kasper Lund wrote:
> I'm not sure this is a good idea in the context of Chromium. Maybe you should
> just make the shell sample and d8 do explicit tear down or use the atexit from
> there? It really should be up to the embedder to invoke V8::TearDown.

OK. The problem is that I don't see any shutdown-related methods in the public
header file (include/v8.h).

I think it's not a big problem for OProfile to have an unclosed handle.
Application can crash, for example.

But it's an interesting issue though that shutting down V8 isn't put explicitly
anywhere. Do you think we need to track this?

Powered by Google App Engine
This is Rietveld 408576698