xref: /third_party/node/test/fixtures/workload/fibonacci-worker-argv.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/fixtures/workload/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_ciconst { Worker } = require('worker_threads');
41cb0ef41Sopenharmony_ciconst path = require('path');
51cb0ef41Sopenharmony_cinew Worker(path.join(__dirname, 'fibonacci.js'), {
61cb0ef41Sopenharmony_ci  execArgv: [
71cb0ef41Sopenharmony_ci    '--cpu-prof',
81cb0ef41Sopenharmony_ci    '--cpu-prof-interval',
91cb0ef41Sopenharmony_ci    process.env.CPU_PROF_INTERVAL || '100'
101cb0ef41Sopenharmony_ci  ]
111cb0ef41Sopenharmony_ci});
12

Indexes created Thu Nov 07 10:32:03 CST 2024