Skip to content

Commit e625e1a

Browse files
committed
Remove nodereport and heapdump capability
1 parent f82778e commit e625e1a

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,6 @@ Allows custom monitoring events to be added into the Node Application Metrics ag
223223
* `type` (String) the name you wish to use for the data. A subsequent event of that type will be raised, allowing callbacks to be registered for it.
224224
* `data` (Object) the data to be made available with the event. The object must not contain circular references, and by convention should contain a `time` value representing the milliseconds when the event occurred.
225225

226-
### appmetrics.writeHeapSnapshot([filename],[callback])
227-
Dumps the v8 heap via `heapdump`. For more information, see [the heapdump README](https://github.com/bnoordhuis/node-heapdump/blob/master/README.md)
228-
229-
### appmetrics.nodereport()
230-
Provides an instance of `nodereport` that can be used to obtain a human-readable diagnostic summary. For more information, see [the nodereport README](https://github.com/nodejs/nodereport/blob/master/README.md)
231-
232226
### appmetrics.monitor()
233227
Creates a Node Application Metrics agent client instance. This can subsequently be used to get environment data and subscribe to data events. This function will start the appmetrics monitoring agent if it is not already running.
234228

index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ var os = require("os")
2424
var aspect = require('./lib/aspect.js');
2525
var request = require('./lib/request.js');
2626
var fs = require('fs');
27-
var nodereport = require('nodereport');
2827
var agent = require("./appmetrics")
2928
var headlessZip = require("./headless_zip.js")
3029

@@ -305,11 +304,3 @@ module.exports.start = function () {
305304
}
306305
agent.start();
307306
}
308-
309-
module.exports.nodereport = function() {
310-
return nodereport;
311-
}
312-
313-
module.exports.writeHeapSnapshot = function() {
314-
return require('heapdump').writeSnapshot.apply(null, arguments);
315-
}

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"node-hc": "bin/appmetrics-cli.js"
77
},
88
"dependencies": {
9-
"heapdump": "0.x",
109
"nan": "2.x",
11-
"nodereport": "1.x",
1210
"tar": "2.x",
1311
"jszip": "3.0.x"
1412
},

0 commit comments

Comments
 (0)