# gc-watch

> Track node.js' garbage collection events and memory statistics

Latest version **0.1.1** (published 2016-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install gc-watch
pnpm add gc-watch
yarn add gc-watch
bun add gc-watch
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-04-19 |
| First published | 2016-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 5 |
| Author | Sankha Narayan Guria |
| Maintainers | sankha93 |
| Keywords | gc, garbage, performance, memory, profile |

## Links

- npm: https://www.npmjs.com/package/gc-watch
- Repository: https://github.com/sankha93/node-gc-watch
- Homepage: https://github.com/sankha93/node-gc-watch#readme
- Issues: https://github.com/sankhs93/node-gc-memwatch.git
- npm.io page: https://npm.io/package/gc-watch

## Dependencies (2)

- [nan](https://npm.io/package/nan.md) ^2.2.1
- [bindings](https://npm.io/package/bindings.md) ^1.2.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2016-04-19
- 0.1.0 — 2016-04-18

## README

# node-gc-watch [![Build Status](https://travis-ci.org/sankha93/node-gc-watch.svg?branch=master)](https://travis-ci.org/sankha93/node-gc-watch)

`node-gc-watch` helps you attach your own event handlers to track when a GC is being fired in your Node.js application. Currently it provides a `beforeGC` and `afterGC` event.

### Installation

```
npm install gc-watch --save
```

### Usage

```js
var gcWatch = require('gc-watch');

gcWatch.on('beforeGC', function() {
  // detect memory usage, push stats etc.
});

gcWatch.on('afterGC', function() {
  // calculate memory freed by GC, etc.
});
```

### License

MIT

---
_Source: https://npm.io/package/gc-watch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
