title: NodeJS: get information on a process from the process ID
body: <p>I am writing a small NodeJS service that I want to be able to monitor a process given the PID of that process. I want to be able to gather the following info about the process:</p>
  
  <ul>
  <li>Start time</li>
  <li>CPU time used</li>
  <li>Memory usage</li>
  </ul>
  
  <p>All processes that I will be monitoring will have been started using the child_process exec (or spawn) function, so I can get the PID from there. Technically, I could record the start time when the process is spawned, but I think this wouldn't be all that accurate?</p>
  
  <p>What would be the best way to get all the above information? It would be good to get and end time when the process exited as well.</p>