'use strict';

var ensureString = require('es5-ext/object/validate-stringifiable-value')
  , getDebug     = require('debug-ext')
  , now          = require('microtime-x');

module.exports = function (ns) {
	var debug = getDebug('health:' + ensureString(ns));

	debug.color = 5;

	debug("%sMB", (process.memoryUsage().rss / 1048576).toFixed(3));

	setInterval(function () {
		debug("%s %s %sMB", (new Date()).toISOString(), now(),
			(process.memoryUsage().rss / 1048576).toFixed(3) + "\n");
	}, 1000 * 60);
};

@@ -280,24 +280,26 @@
 %09debug(%22%25sMB
+%5Cn
 %22, (process.
@@ -387,16 +387,18 @@
  %25s %25sMB
+%5Cn
 %22, (new 
@@ -482,15 +482,8 @@
 d(3)
- + %22%5Cn%22
 );%0A%09

Fix debug log