mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +01:00
added ability to take heap snapshots
This commit is contained in:
@@ -299,4 +299,8 @@ SocketAdmin.getVoters = function(socket, pid, callback) {
|
||||
});
|
||||
};
|
||||
|
||||
SocketAdmin.takeHeapSnapshot = function(socket, data, callback) {
|
||||
require('heapdump').writeSnapshot(callback);
|
||||
};
|
||||
|
||||
module.exports = SocketAdmin;
|
||||
|
||||
Reference in New Issue
Block a user