Skip to content

jrieken/v8-inspect-profiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

V8 Inspect Profiler

This node module offers v8 cpu profiling via the Chrome DevTools protocol.

Usage

Start the node.js instance that you want to profile

node --inspect-brk=5222 myApp.js

Next, start profiling. Create an app that starts and stops profiling. Like so:

const profiler = require('v8-inspect-profiler');

// connect and start profiler
const session = await profiler.startProfiling({port: 5222 });

// time goes by ...

// stop profiler and disconnect 
const profile = await session.stop();

// save profile to disk
await profiler.writeProfile(profile, 'somepath.cpuprofile');

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •