Socket
Book a DemoInstallSign in
Socket

heap-cleaner

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heap-cleaner

## Usage

1.4.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

Heap Cleaner - reduces the V8 heapsnapshot and focuses on a specific node for analyzing a memory leak.

Usage

Just run src/bin.ts with the input file and optionally pass in a node id(s) to focus as last parameter(s). If the node to focus is not provided, the program will try to find a detached windows and focus on it. Output is minified heapsnapshot file (original file name with focused node id suffix).

npm run start sample/sample.heapsnapshot
npm run start sample/sample.heapsnapshot 123 456 789

or

node --require ts-node/register --max-old-space-size=32768 src/bin.ts sample/sample.heapsnapshot

or

npx heap-cleaner sample/sample.heapsnapshot

without need to clone the repo, but you will not be able to extend memory for big heap snapshots.

FAQs

Package last updated on 03 Oct 2023

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.