after(done => { const profile = profiler.stopProfiling('') const profileFileName = 'jsonapi-server.cpuprofile' const filePath = path.join(__dirname, '..', profileFileName) fs.writeFileSync(filePath, JSON.stringify(profile)) console.error('Saved CPU profile to', filePath) done() })
after(done => { const profile = profiler.stopProfiling('') const profileFileName = 'jsonapi-server.cpuprofile' const filePath = path.join(__dirname, '..', profileFileName) fs.writeFileSync(filePath, JSON.stringify(profile)) console.error('Saved CPU profile to', filePath) done() })