mul

memory-usage-logger

memory usage logger for nodejs

Showing:

Popularity

Downloads/wk

8

GitHub Stars

2

Maintenance

Last Commit

7yrs ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

1.0KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

memory-usage-logger

This module logs memory usage in CSV file and builds a chart.

The example of a result is:

Chart example

How to use it?

var logger = require('memory-usage-logger');

// will log into folder "/absolute/path/to/logs/directory" every 1000 ms:
logger.run(1000, "/absolute/path/to/logs/directory");

// to stop:
logger.stop();

API

run

logger.run(delay, logDir)

delay - delay for setInterval

logDir - Directory to log data.

stop

logger.stop()

will stop logger which was wun by logger.run().

setLogDir

logger.setLogDir('/absolute/path/to/logs/directory')

You can also set log directory by calling this func.

setMaxLogSize

logger.setMaxLogSize(50000)

Set maximum size of CSV file. It useful, since browsers cannot process big data.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100