github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/globalSetup.js (about) 1 module.exports = (config) => { 2 process.env['PYROSCOPE_SAMPLING_DURATION'] = 1000; 3 const Pyroscope = require('@pyroscope/nodejs'); 4 5 Pyroscope.init({ serverAddress: '_', appName: 'pyroscope-oss.frontend' }); 6 if (process.env.CI) { 7 Pyroscope.start(); 8 } 9 };