1
1
'use strict' ;
2
2
3
- // This tests that --cpu-prof, --prof-dir and --cpu-prof-name works.
3
+ // This tests that --cpu-prof, --node- prof-dir and --cpu-prof-name works.
4
4
5
5
const common = require ( '../common' ) ;
6
6
if ( process . features . debug &&
@@ -162,11 +162,11 @@ const env = {
162
162
`${ process . execPath } : --cpu-prof-name must be used with --cpu-prof` ) ;
163
163
}
164
164
165
- // --prof-dir without --cpu-prof
165
+ // --node- prof-dir without --cpu-prof
166
166
{
167
167
tmpdir . refresh ( ) ;
168
168
const output = spawnSync ( process . execPath , [
169
- '--prof-dir' ,
169
+ '--node- prof-dir' ,
170
170
'prof' ,
171
171
fixtures . path ( 'workload' , 'fibonacci.js' ) ,
172
172
] , {
@@ -180,7 +180,7 @@ const env = {
180
180
assert . strictEqual ( output . status , 9 ) ;
181
181
assert . strictEqual (
182
182
stderr ,
183
- `${ process . execPath } : --prof-dir must be used with --cpu-prof` ) ;
183
+ `${ process . execPath } : --node- prof-dir must be used with --cpu-prof` ) ;
184
184
}
185
185
186
186
// --cpu-prof-name
@@ -205,12 +205,12 @@ const env = {
205
205
verifyFrames ( output , file , 'fibonacci.js' ) ;
206
206
}
207
207
208
- // relative --prof-dir
208
+ // relative --node- prof-dir
209
209
{
210
210
tmpdir . refresh ( ) ;
211
211
const output = spawnSync ( process . execPath , [
212
212
'--cpu-prof' ,
213
- '--prof-dir' ,
213
+ '--node- prof-dir' ,
214
214
'prof' ,
215
215
fixtures . path ( 'workload' , 'fibonacci.js' ) ,
216
216
] , {
@@ -228,13 +228,13 @@ const env = {
228
228
verifyFrames ( output , profiles [ 0 ] , 'fibonacci.js' ) ;
229
229
}
230
230
231
- // absolute --prof-dir
231
+ // absolute --node- prof-dir
232
232
{
233
233
tmpdir . refresh ( ) ;
234
234
const dir = path . join ( tmpdir . path , 'prof' ) ;
235
235
const output = spawnSync ( process . execPath , [
236
236
'--cpu-prof' ,
237
- '--prof-dir' ,
237
+ '--node- prof-dir' ,
238
238
dir ,
239
239
fixtures . path ( 'workload' , 'fibonacci.js' ) ,
240
240
] , {
@@ -251,7 +251,7 @@ const env = {
251
251
verifyFrames ( output , profiles [ 0 ] , 'fibonacci.js' ) ;
252
252
}
253
253
254
- // --prof-dir and --cpu-prof-name
254
+ // --node- prof-dir and --cpu-prof-name
255
255
{
256
256
tmpdir . refresh ( ) ;
257
257
const dir = path . join ( tmpdir . path , 'prof' ) ;
@@ -260,7 +260,7 @@ const env = {
260
260
'--cpu-prof' ,
261
261
'--cpu-prof-name' ,
262
262
'test.cpuprofile' ,
263
- '--prof-dir' ,
263
+ '--node- prof-dir' ,
264
264
dir ,
265
265
fixtures . path ( 'workload' , 'fibonacci.js' ) ,
266
266
] , {
@@ -277,11 +277,11 @@ const env = {
277
277
verifyFrames ( output , file , 'fibonacci.js' ) ;
278
278
}
279
279
280
- // --prof-dir with worker
280
+ // --node- prof-dir with worker
281
281
{
282
282
tmpdir . refresh ( ) ;
283
283
const output = spawnSync ( process . execPath , [
284
- '--prof-dir' ,
284
+ '--node- prof-dir' ,
285
285
'prof' ,
286
286
'--cpu-prof' ,
287
287
fixtures . path ( 'workload' , 'fibonacci-worker.js' ) ,
0 commit comments