server.js: group together the loading of the stats system
No functional changes, this is intended to simplify subsequent patches.pull/3558/head
parent
b16b98f8ca
commit
36addd2205
|
@ -23,12 +23,15 @@
|
||||||
|
|
||||||
var log4js = require('log4js')
|
var log4js = require('log4js')
|
||||||
, async = require('async')
|
, async = require('async')
|
||||||
, stats = require('./stats')
|
|
||||||
, NodeVersion = require('./utils/NodeVersion')
|
, NodeVersion = require('./utils/NodeVersion')
|
||||||
;
|
;
|
||||||
|
|
||||||
log4js.replaceConsole();
|
log4js.replaceConsole();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* start up stats counting system
|
||||||
|
*/
|
||||||
|
var stats = require('./stats');
|
||||||
stats.gauge('memoryUsage', function() {
|
stats.gauge('memoryUsage', function() {
|
||||||
return process.memoryUsage().rss
|
return process.memoryUsage().rss
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue