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

Issue 1179173009: Add support for running the profiler output processing scripts with node. (Closed)

Created:
5 years, 6 months ago by mattloring
Modified:
4 years, 11 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Add support for running the profiler output processing scripts with node. Currently, using the v8 profiler with node requires fetching v8 dependencies and building natively inside the node installation. This change allows the processing scripts to be fall back to node if a d8 installation cannot be found. It maintains compatibility with d8 if d8 can be found. This is an experiment. It would be great to make these tools more accessible to node developers.

Patch Set 1 #

Patch Set 2 : Adding reviewers #

Patch Set 3 : Pulling in changes since the last node v8 version #

Patch Set 4 : Passed a missing type arg through to CodeEntry #

Total comments: 10

Patch Set 5 : Edits based on review suggestions #

Patch Set 6 : Formatting to meet chromium style guide #

Patch Set 7 : shell script properly checks for node installed on the system #

Patch Set 8 : prototype using es6 module syntax #

Patch Set 9 : moved polyfills into node specific script #

Patch Set 10 : a few formatting changes #

Patch Set 11 : reintroduced accidentally removed d8 call #

Patch Set 12 : first go at mac/windows scripts #

Patch Set 13 : factored out duplicated code in node scripts #

Patch Set 14 : buffered readline polyfill #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -52 lines) Patch
A tools/node-linux-tick-processor View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +23 lines, -0 lines 0 comments Download
A tools/node-mac-tick-processor View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
A + tools/node-polyfill.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +34 lines, -50 lines 0 comments Download
A + tools/node-windows-tick-processor.bat View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
Michael Achenbach
I never touched any of these files. + jkummerow
5 years, 6 months ago (2015-06-19 08:10:07 UTC) #7
Jakob Kummerow
Yeah, node.js developers will love this. [+rossberg] Andreas, do the import/export statements (look at codemap.js ...
5 years, 6 months ago (2015-06-19 09:43:54 UTC) #9
noordhuis
https://codereview.chromium.org/1179173009/diff/60001/tools/tickprocessor.js File tools/tickprocessor.js (right): https://codereview.chromium.org/1179173009/diff/60001/tools/tickprocessor.js#newcode39 tools/tickprocessor.js:39: return require('child_process').execSync(name + ' ' + args.join(' ')).toString(); I ...
5 years, 6 months ago (2015-06-19 10:43:07 UTC) #11
rossberg
On 2015/06/19 09:43:54, Jakob wrote: > Yeah, node.js developers will love this. > > [+rossberg] ...
5 years, 6 months ago (2015-06-19 11:38:25 UTC) #12
mattloring
https://codereview.chromium.org/1179173009/diff/60001/tools/profile.js File tools/profile.js (left): https://codereview.chromium.org/1179173009/diff/60001/tools/profile.js#oldcode402 tools/profile.js:402: On 2015/06/19 09:43:53, Jakob wrote: > keep this line ...
5 years, 6 months ago (2015-06-19 17:29:04 UTC) #13
mattloring
On 2015/06/19 11:38:25, rossberg wrote: > On 2015/06/19 09:43:54, Jakob wrote: > > Yeah, node.js ...
5 years, 6 months ago (2015-06-19 17:45:07 UTC) #14
mattloring
As far as I know, there is not currently es6 module support in v8. As ...
5 years, 6 months ago (2015-06-23 00:57:03 UTC) #15
Jakob Kummerow
Andreas (rossberg@) is on vacation this week, so it'll be a while before he can ...
5 years, 6 months ago (2015-06-23 09:13:44 UTC) #16
mattloring
I've implemented this polyfill as Jakob suggested. Would the shell scripts be better placed here ...
5 years, 5 months ago (2015-06-26 22:26:47 UTC) #17
Jakob Kummerow
On 2015/06/26 22:26:47, mattloring wrote: > I've implemented this polyfill as Jakob suggested. Would the ...
5 years, 5 months ago (2015-06-29 09:28:05 UTC) #18
rossberg
On 2015/06/29 09:28:05, Jakob wrote: > On 2015/06/26 22:26:47, mattloring wrote: > > I've implemented ...
5 years, 5 months ago (2015-06-30 14:02:03 UTC) #19
mattloring
5 years, 5 months ago (2015-06-30 14:56:51 UTC) #20
That makes sense. I'll work to get this into node directly. Thank you for your
suggestions during the review process!

Powered by Google App Engine
This is Rietveld 408576698