removed heapdump

v1.18.x
barisusakli 9 years ago
parent a6074da17e
commit dea74aa11e

@ -32,7 +32,6 @@
"express": "^4.9.5",
"express-session": "^1.8.2",
"express-useragent": "0.2.4",
"heapdump": "^0.3.0",
"html-to-text": "1.5.0",
"jimp": "0.2.20",
"less": "^2.0.0",

@ -2,17 +2,13 @@
var async = require('async'),
winston = require('winston'),
fs = require('fs'),
path = require('path'),
groups = require('../groups'),
meta = require('../meta'),
plugins = require('../plugins'),
widgets = require('../widgets'),
user = require('../user'),
topics = require('../topics'),
posts = require('../posts'),
categories = require('../categories'),
logger = require('../logger'),
events = require('../events'),
emailer = require('../emailer'),
@ -277,7 +273,7 @@ function getHourlyStatsForSet(set, hour, numHours, callback) {
var termsArr = [];
hoursArr.reverse();
hoursArr.forEach(function(hour, idx) {
hoursArr.forEach(function(hour) {
termsArr.push(terms[hour]);
});
@ -307,7 +303,7 @@ function getDailyStatsForSet(set, day, numDays, callback) {
}, function(err) {
callback(err, daysArr);
});
};
}
SocketAdmin.getMoreEvents = function(socket, next, callback) {
var start = parseInt(next, 10);
@ -359,8 +355,4 @@ SocketAdmin.getMoreFlags = function(socket, data, callback) {
}
};
SocketAdmin.takeHeapSnapshot = function(socket, data, callback) {
require('heapdump').writeSnapshot(callback);
};
module.exports = SocketAdmin;

@ -32,12 +32,6 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Heap Snapshot</div>
<div class="panel-body">
<button class="btn btn-primary" id="heap-snapshot">Take Heap Snapshot</button>
</div>
</div>
</div>
<div class="col-lg-3 acp-sidebar">
@ -54,14 +48,5 @@
<script>
require(['admin/settings'], function(Settings) {
Settings.prepare();
$('#heap-snapshot').on('click', function() {
socket.emit('admin.takeHeapSnapshot', function(err, filename) {
if (err) {
return app.alertError(err.message);
}
app.alertSuccess('Heap Snapshot saved! ' + filename);
});
})
});
</script>

Loading…
Cancel
Save