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

Issue 1899133004: [Interpreter] Add Ignition statistics JavaScript extension. (Closed)

Created:
4 years, 8 months ago by Stefano Sanfilippo
Modified:
4 years, 7 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Add Ignition statistics JavaScript extension. This commit introduces IgnitionStatisticsExtension, which provides methods for accessing Ignition statistics and counters from JavaScript. The extension is registered when FLAG_ignition and FLAG_trace_ignition_dispatches are both enabled. For the moment, the only exposed function is getIgnitionDispatchCounters(), which allows to retrieve Ignition dispatch counters as a JavaScript object. BUG=v8:4899 LOG=N Committed: https://crrev.com/905becd13b8696e126255decf130fdb9e1d9aa30 Cr-Commit-Position: refs/heads/master@{#35816}

Patch Set 1 : #

Total comments: 17

Patch Set 2 : Review. #

Patch Set 3 : Reintroduce CHECKs. #

Patch Set 4 : Use JSON::Stringify. #

Patch Set 5 : Renaming for consistency. #

Patch Set 6 : Change return type of bytecode_dispatch_counters_table() #

Total comments: 4

Patch Set 7 : Rebase, make Interpreter::GetDispatchCounter private. #

Patch Set 8 : Rebase (sync src/v8.gyp) #

Patch Set 9 #

Patch Set 10 #

Patch Set 11 : Added mjsunit test. #

Patch Set 12 : Check that the outer object has at least one property. #

Patch Set 13 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -49 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M src/assembler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M src/bootstrapper.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 7 5 chunks +20 lines, -12 lines 0 comments Download
M src/d8.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/d8.cc View 1 2 3 4 4 chunks +22 lines, -6 lines 0 comments Download
A src/extensions/ignition-statistics-extension.h View 1 1 chunk +31 lines, -0 lines 0 comments Download
A src/extensions/ignition-statistics-extension.cc View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.h View 1 2 3 4 5 6 3 chunks +7 lines, -4 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 5 6 7 3 chunks +36 lines, -26 lines 0 comments Download
M src/v8.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A test/mjsunit/ignition/ignition-statistics-extension.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 93 (50 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899133004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899133004/100001
4 years, 8 months ago (2016-04-21 11:28:33 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899133004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899133004/120001
4 years, 8 months ago (2016-04-21 11:35:17 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_chromium_gn_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_chromium_gn_rel/builds/16770)
4 years, 8 months ago (2016-04-21 11:55:50 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899133004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899133004/160001
4 years, 8 months ago (2016-04-21 12:17:35 UTC) #21
Stefano Sanfilippo
4 years, 8 months ago (2016-04-21 13:01:34 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-21 13:14:26 UTC) #25
oth
Very nice, lgtm, with a couple of comments. It might be an idea to run ...
4 years, 8 months ago (2016-04-21 14:03:03 UTC) #26
rmcilroy
Nice, looks good. Yeah, let's get Jochen or someone to have a look at it ...
4 years, 8 months ago (2016-04-21 14:17:29 UTC) #27
Stefano Sanfilippo
https://codereview.chromium.org/1899133004/diff/160001/src/extensions/ignition-statistics-extension.cc File src/extensions/ignition-statistics-extension.cc (right): https://codereview.chromium.org/1899133004/diff/160001/src/extensions/ignition-statistics-extension.cc#newcode26 src/extensions/ignition-statistics-extension.cc:26: void IgnitionStatisticsExtension::DumpIgnitionDispatchCounters( On 2016/04/21 14:17:29, rmcilroy wrote: > Call ...
4 years, 8 months ago (2016-04-21 14:22:42 UTC) #28
Stefano Sanfilippo
On 2016/04/21 14:17:29, rmcilroy wrote: > https://codereview.chromium.org/1899133004/diff/160001/src/extensions/ignition-statistics-extension.cc#newcode59 > src/extensions/ignition-statistics-extension.cc:59: > CHECK(counters_row->Set(context, to_name_object, counter_object) > No ...
4 years, 8 months ago (2016-04-21 14:27:53 UTC) #29
rmcilroy
https://codereview.chromium.org/1899133004/diff/160001/src/extensions/ignition-statistics-extension.cc File src/extensions/ignition-statistics-extension.cc (right): https://codereview.chromium.org/1899133004/diff/160001/src/extensions/ignition-statistics-extension.cc#newcode31 src/extensions/ignition-statistics-extension.cc:31: using interpreter::Bytecode; On 2016/04/21 14:22:42, Stefano Sanfilippo wrote: > ...
4 years, 8 months ago (2016-04-21 14:33:30 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899133004/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899133004/280001
4 years, 8 months ago (2016-04-22 10:47:35 UTC) #35
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899133004/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899133004/300001
4 years, 8 months ago (2016-04-22 10:50:58 UTC) #38
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-22 11:15:10 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899133004/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899133004/360001
4 years, 8 months ago (2016-04-22 12:38:39 UTC) #44
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-22 13:00:31 UTC) #46
Stefano Sanfilippo
https://codereview.chromium.org/1899133004/diff/160001/src/extensions/ignition-statistics-extension.cc File src/extensions/ignition-statistics-extension.cc (right): https://codereview.chromium.org/1899133004/diff/160001/src/extensions/ignition-statistics-extension.cc#newcode31 src/extensions/ignition-statistics-extension.cc:31: using interpreter::Bytecode; On 2016/04/21 14:33:30, rmcilroy wrote: > On ...
4 years, 8 months ago (2016-04-22 13:00:49 UTC) #47
Stefano Sanfilippo
machenbach please review changes in tools/gyp/v8.gyp
4 years, 8 months ago (2016-04-25 12:54:15 UTC) #51
Michael Achenbach
https://codereview.chromium.org/1899133004/diff/380001/tools/gyp/v8.gyp File tools/gyp/v8.gyp (right): https://codereview.chromium.org/1899133004/diff/380001/tools/gyp/v8.gyp#newcode776 tools/gyp/v8.gyp:776: '../../src/extensions/ignition-statistics-extension.cc', Please add this also to src/v8.gyp so that ...
4 years, 8 months ago (2016-04-25 13:03:18 UTC) #52
rmcilroy
LGTM, but as mentioned above, please get someone familiar to the extensions code to take ...
4 years, 8 months ago (2016-04-25 13:05:45 UTC) #53
Stefano Sanfilippo
https://codereview.chromium.org/1899133004/diff/380001/src/interpreter/interpreter.h File src/interpreter/interpreter.h (right): https://codereview.chromium.org/1899133004/diff/380001/src/interpreter/interpreter.h#newcode52 src/interpreter/interpreter.h:52: uintptr_t GetDispatchCounter(Bytecode from, Bytecode to) const; On 2016/04/25 13:05:45, ...
4 years, 8 months ago (2016-04-25 13:24:07 UTC) #54
oth
On 2016/04/25 13:24:07, Stefano Sanfilippo wrote: > https://codereview.chromium.org/1899133004/diff/380001/src/interpreter/interpreter.h > File src/interpreter/interpreter.h (right): > > https://codereview.chromium.org/1899133004/diff/380001/src/interpreter/interpreter.h#newcode52 ...
4 years, 8 months ago (2016-04-25 14:09:52 UTC) #55
Stefano Sanfilippo
On 2016/04/25 14:09:52, oth wrote: > On 2016/04/25 13:24:07, Stefano Sanfilippo wrote: > > > ...
4 years, 8 months ago (2016-04-25 14:23:01 UTC) #58
Michael Achenbach
On 2016/04/25 14:09:52, oth wrote: > On 2016/04/25 13:24:07, Stefano Sanfilippo wrote: > > > ...
4 years, 8 months ago (2016-04-25 14:29:23 UTC) #59
Stefano Sanfilippo
Added ignition-statistics-extension.{cc,h} to src/v8.gyp. Is there any way I can try a build with the ...
4 years, 8 months ago (2016-04-25 14:30:42 UTC) #60
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899133004/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899133004/420001
4 years, 8 months ago (2016-04-25 14:32:14 UTC) #62
Michael Achenbach
gyp lgtm
4 years, 8 months ago (2016-04-25 14:49:49 UTC) #63
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-25 14:55:46 UTC) #65
Yang
On 2016/04/25 14:55:46, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 8 months ago (2016-04-26 13:09:52 UTC) #66
Stefano Sanfilippo
On 2016/04/26 13:09:52, Yang wrote: > On 2016/04/25 14:55:46, commit-bot: I haz the power wrote: ...
4 years, 8 months ago (2016-04-26 13:19:56 UTC) #67
Yang
On 2016/04/26 13:19:56, Stefano Sanfilippo wrote: > On 2016/04/26 13:09:52, Yang wrote: > > On ...
4 years, 8 months ago (2016-04-26 13:35:20 UTC) #68
Stefano Sanfilippo
On 2016/04/26 13:35:20, Yang wrote: > On 2016/04/26 13:19:56, Stefano Sanfilippo wrote: > > On ...
4 years, 8 months ago (2016-04-26 15:16:34 UTC) #69
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899133004/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899133004/500001
4 years, 8 months ago (2016-04-26 16:47:41 UTC) #72
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-26 17:18:40 UTC) #74
Yang
On 2016/04/26 17:18:40, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 8 months ago (2016-04-27 05:21:01 UTC) #75
rmcilroy
mjsunit test lgtm, thanks.
4 years, 8 months ago (2016-04-27 07:35:40 UTC) #76
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899133004/520001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899133004/520001
4 years, 8 months ago (2016-04-27 10:21:39 UTC) #79
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm_rel_ng/builds/784) v8_linux_dbg_ng on tryserver.v8 (JOB_FAILED, ...
4 years, 8 months ago (2016-04-27 10:22:51 UTC) #81
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899133004/560001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899133004/560001
4 years, 8 months ago (2016-04-27 10:43:31 UTC) #84
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-27 11:07:18 UTC) #86
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899133004/560001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899133004/560001
4 years, 7 months ago (2016-04-27 11:08:45 UTC) #89
commit-bot: I haz the power
Committed patchset #13 (id:560001)
4 years, 7 months ago (2016-04-27 11:10:53 UTC) #91
commit-bot: I haz the power
4 years, 7 months ago (2016-04-27 11:11:52 UTC) #93
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/905becd13b8696e126255decf130fdb9e1d9aa30
Cr-Commit-Position: refs/heads/master@{#35816}

Powered by Google App Engine
This is Rietveld 408576698