GitXplorerGitXplorer
j

v8-inspect-profiler

public
17 stars
2 forks
1 issues

Commits

List of commits on branch master.
Verified
8878fdb02fc16517f9f48043f8f10988b3ce67e3

0.1.1

jjrieken committed 10 months ago
Verified
a705eb87df2d238bcec806d6c317096d8b2ce9d2

Merge pull request #3 from connor4312/master

jjrieken committed 10 months ago
Verified
63fb64e0089cb6cada352265fa02bfa25107ff37

fix: allow specifying the host to connect to

cconnor4312 committed 10 months ago
Unverified
80014ea198919907589f8e75d5deadb6caf19111

0.1.0

jjrieken committed 3 years ago
Unverified
e48fd2c64e9eca90682c6dab3df856e5b2a47097

remove rewriteAbsolutePaths and writeProfile

jjrieken committed 3 years ago
Unverified
2d2bdb69866ca905f6803a894557b13ed76a18e7

0.0.22

jjrieken committed 4 years ago

README

The README file for this repository.

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');