code: function getStats() {
    var procMem = process.memoryUsage();
    var stats = {
      mem: {
        total: os.totalmem(),
        free: os.freemem(),
        heap: procMem.rss
      },
      cpu: os.loadavg()
    };
    for(var i=0; i < stats.cpu.length; i++) {
      stats.cpu[i] = stats.cpu[i].toFixed(3);
    }
    stats.cpu = stats.cpu.join(",");
    // We convert from bytes to mb
    stats.mem.total = Math.ceil(stats.mem.total / 1000000) + "MB";
    stats.mem.free = Math.ceil(stats.mem.free / 1000000) + "MB";
    stats.mem.heap = (stats.mem.heap / 1000000).toFixed(3) + "MB";
    return stats;
  }
docs: /* Returns the memory and cpu stats.