File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -1155,6 +1155,9 @@ V8 options that are allowed are:
11551155*  ` --stack-trace-limit ` 
11561156<!--  node-options-v8 end --> 
11571157
1158+ ` --perf-basic-prof-only-functions ` , ` --perf-basic-prof ` ,
1159+ ` --perf-prof-unwinding-info ` , and ` --perf-prof `  are only available on Linux.
1160+ 
11581161### ` NODE_PATH=path[:…] `  
11591162<!--  YAML
11601163added: v0.1.32 
Original file line number Diff line number Diff line change @@ -48,15 +48,14 @@ expectNoWorker('--trace-event-file-pattern {pid}-${rotation}.trace_events ' +
4848       '--trace-event-categories node.async_hooks' ,  'B\n' ) ; 
4949expect ( '--unhandled-rejections=none' ,  'B\n' ) ; 
5050
51- if  ( ! common . isWindows )  { 
51+ if  ( common . isLinux )  { 
5252  expect ( '--perf-basic-prof' ,  'B\n' ) ; 
5353  expect ( '--perf-basic-prof-only-functions' ,  'B\n' ) ; 
54- } 
5554
56- if   ( common . isLinux   &&   [ 'arm' ,  'x64' ] . includes ( process . arch ) )  { 
57-   // PerfJitLogger is only implemented in Linux. 
58-   expect ( '--perf-prof' ,  'B\n' ) ; 
59-   expect ( '--perf-prof-unwinding-info' ,   'B\n' ) ; 
55+    if   ( [ 'arm' ,  'x64' ] . includes ( process . arch ) )  { 
56+      expect ( '--perf-prof' ,   'B\n' ) ; 
57+      expect ( '--perf-prof-unwinding-info ' ,  'B\n' ) ; 
58+   } 
6059} 
6160
6261if  ( common . hasCrypto )  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments