code: function(res, pid) {
    var lines = res.split('\n')
      , data = s(lines[1]).collapseWhitespace().s
      , dataParts = data.split(' ');
  
    return {
      pid: pid
    , cpu: dataParts[0] || '0.0'
    , mem: dataParts[1] || '0'
    };
  }
docs: /*
  Helper functions
  -------------------------------------------------------------------------- 
  Parses the process detail output into and object.
  @param  {string} res Output from the PS command.
  @return {object} CPU and memory statistics.