Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

v8-inspect-profiler

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v8-inspect-profiler

v8 profiling via the chrome dev-tools protocol

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 02 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc