 
     else if startsWith info, 'Starting process with command'
       events.push { type: 'process-starting', time: timestamp, dyno: dyno, msg: info }
-    else if startsWith info, 'noflo-runtime-msgflo started'
+    else if started info
       events.push { type: 'process-started', time: timestamp, dyno: dyno, msg: info }
 
     else if startsWith info, 'Process exited with status'

  state.startups = [] if not state.startups
  state.shutdowns = [] if not state.shutdowns


  # TODO: reject invalid transitions.\
  # Note, they can happen initially because we don't generally know initial state
  if event.dyno
    # Dyno-specific events

      shutdown_length: stops.length
    return callback null, results

# TODO: add a guv-update-jobstats tool
# TODO: allow to separate between (module) loading time, and startup time
# TODO: calculate whole delay from scaling to up by default, and scaling down to down
# TODO: add tool for calculating 'waste' percentage. Ratio of time spent processing versus startup+shutdown
exports.startuptime_main = () ->
  program = require 'commander'

