added ability to take heap snapshots

This commit is contained in:
barisusakli
2014-11-15 19:09:44 -05:00
parent 7825b8b951
commit 9ab74b0a61
3 changed files with 22 additions and 1 deletions

View File

@@ -299,4 +299,8 @@ SocketAdmin.getVoters = function(socket, pid, callback) {
});
};
SocketAdmin.takeHeapSnapshot = function(socket, data, callback) {
require('heapdump').writeSnapshot(callback);
};
module.exports = SocketAdmin;