Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 338 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 338 Bytes

Eris profiler

Record V8 CPU profile.

Install

npm install eris-profiler --save
const fs = require('fs')
const profiler = require('eris-profiler')

profiler.start('test')

// Do something

fs.writeFile('test.cpuprofile', profiler.stop('test'), function (err) {
  if (err) {
    console.log(err)
  }
})