yahoo / monitr

A Node.js process monitoring tool.
BSD 3-Clause "New" or "Revised" License
317 stars 39 forks source link

Add process.monitor.gc.{count,elapsed} getters #33

Closed evantorrie closed 9 years ago

evantorrie commented 9 years ago

Hang a gc object off process.monitor with readonly absolute values since the monitr process is started of:

  1. count: # of times GC stop-the-world events have occurred
  2. elapsed: cumulative elapsed time in milliseconds spent in GC

By taking a snapshot of these values at two different times (t1 and t2), application code can determine count and duration of GC events between t1 and t2.

drewfish commented 9 years ago

+1

lingyan commented 9 years ago

:cool: