appwatch v1.3.3
Appwatch
About
This tool provides a command-line, scriptable method for taking heapdumps and node reports for express applications. The files can be saved and also downloaded from the UI. The saved files can later be used for analysis using Chrome Devtools
How to Install appwatch
ynpm install appwatch
Usage:
In app.js
Load the add-on in your application:
var mw = require('appwatch');
Include in the middleware and pass the parameters.
outputDir - Dir to save the heapdumps and node report endPoint - The URL for listing the files in the UI enableFw - Enabling the file watch feature enableEndPoint - Enabling the UI
app.use(mw({ outputDir: '/tmp/', endPoint: '/getlist', enableFw: true, enableEndPoint: true
}));
appwatch ssjain$ ./cli.js Commands: type --type Enter heap or report num --num Number of times the heapdump or node report int --int Enter the interval for heapdumbs dir --dir Enter path to save the files
Options: --help Show help boolean --type required --dir required
Missing required arguments: type, dir
eg. ./cli.js --type=heap --num=1 --int=10 —dir=/tmp/
Edited 2 times