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

Issue 519543002: [WIP] Added CodeEventListener to the sampler API. (Closed)

Created:
6 years, 3 months ago by gholap
Modified:
6 years, 3 months ago
Reviewers:
fmeawad
CC:
v8-dev, Paweł Hajdan Jr., Sven Panne, Benedikt Meurer
Project:
v8
Visibility:
Public.

Description

[WIP] Added CodeEventListener to the sampler API.

Patch Set 1 #

Patch Set 2 : RegExpCodeCreateEvent also logs as code-creation, added coverage for that. #

Patch Set 3 : CallbackEvent also logs as code-creation, added coverage for that. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+631 lines, -17 lines) Patch
M include/v8.h View 3 chunks +92 lines, -0 lines 0 comments Download
M src/api.cc View 3 chunks +28 lines, -0 lines 0 comments Download
M src/arm/regexp-macro-assembler-arm.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/arm64/regexp-macro-assembler-arm64.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/builtins.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/code-stubs.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler.cc View 3 chunks +5 lines, -1 line 0 comments Download
M src/cpu-profiler.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/ia32/regexp-macro-assembler-ia32.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/isolate.h View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M src/isolate.cc View 1 2 2 chunks +124 lines, -0 lines 0 comments Download
M src/log.cc View 1 2 6 chunks +18 lines, -0 lines 0 comments Download
M src/mips/regexp-macro-assembler-mips.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/sampler.h View 5 chunks +18 lines, -7 lines 0 comments Download
M src/sampler.cc View 9 chunks +105 lines, -9 lines 0 comments Download
M src/stub-cache.cc View 10 chunks +10 lines, -0 lines 0 comments Download
M src/x64/regexp-macro-assembler-x64.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/x87/regexp-macro-assembler-x87.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/cctest.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A test/cctest/test-sampler-api.cc View 1 chunk +208 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
gholap
gholap@chromium.org changed reviewers: + fmeawad@chromium.org
6 years, 3 months ago (2014-08-29 00:28:42 UTC) #1
gholap
One issue here is: Most of these code insertions like isolate->CodeCreateEvent(...) can be avoided if ...
6 years, 3 months ago (2014-08-29 00:34:18 UTC) #2
Sven Panne
6 years, 3 months ago (2014-08-29 07:08:24 UTC) #3
On 2014/08/29 00:34:18, gholap wrote:
> One issue here is:
> Most of these code insertions like
> isolate->CodeCreateEvent(...)
> can be avoided if we use JitCodeEventHandler instead of writing our own event
> handler.
> What stops us from doing that?
> The function names JitCodeEvent are not exactly same as those that are printed
> in v8.log
> For example:
> code-creation ... 0x24b36585e8a0,268,LazyCompile:~funcname :1  (JitCodeEvent)
> code-creation ... 0x24b36585e840,364,funcname :1:99            (v8.log)
> 
> The handler in this CL tries to follow v8.log as faithfully as possible.
> Also should be noticed that the starting addresses as well as the size of the
> compiled code is reported differeted by the two loggers.

I would strongly oppose introducing a whole new API if we already almost have
what we need. What needs to be investigated:

   * What are the detailed differences between your proposed API and what we
already have in v8?

   * Are the differences *really* important or could those be handled on the
embedder side?

   * If they are important, that's not a good reason to come up with a whole new
duplicated API. We should tweak what we have already to cover the new use case.

Powered by Google App Engine
This is Rietveld 408576698