func counterRuntimeVars(dataChan chan *metrics.EventMetrics, ts time.Time, m *runtime.MemStats, l *logger.Logger) {
	em := metrics.NewEventMetrics(ts).
		AddLabel("ptype", "sysvars").
		AddLabel("probe", "sysvars")

	// Time since this module started.
	timeSince := time.Since(startTime).Seconds()
	em.AddMetric("uptime_msec", metrics.NewFloat(timeSince*1000))
	// TODO: Deprecate "uptime" in favor of "uptime_msec".
	em.AddMetric("uptime", metrics.NewInt(int64(timeSince)))

	// GC memory stats
	em.AddMetric("gc_time_msec", metrics.NewFloat(float64(m.PauseTotalNs)/1e6))
	em.AddMetric("mallocs", metrics.NewInt(int64(m.Mallocs)))
	em.AddMetric("frees", metrics.NewInt(int64(m.Frees)))

	dataChan <- em
	l.Info(em.String())
}
// counterRuntimeVars exports counter runtime stats, stats that grow through
// the lifetime of the process. These stats are exported as CUMULATIVE
// EventMetrics.
counterRuntimeVars exports counter runtime stats, stats that grow through
the lifetime of the process. These stats are exported as CUMULATIVE
EventMetrics.
// counterRuntimeVars exports counter runtime stats stats that grow through // the lifetime of the process . These stats are exported as CUMULATIVE // EventMetrics .
func counterRuntimeVars(dataChan chan *metrics.EventMetrics, ts time.Time, m *runtime.MemStats, l *logger.Logger) {
	em := metrics.NewEventMetrics(ts).
		AddLabel("ptype", "sysvars").
		AddLabel("probe", "sysvars")
	timeSince := time.Since(startTime).Seconds()
	em.AddMetric("uptime_msec", metrics.NewFloat(timeSince*1000))
	em.AddMetric("uptime", metrics.NewInt(int64(timeSince)))
	em.AddMetric("gc_time_msec", metrics.NewFloat(float64(m.PauseTotalNs)/1e6))
	em.AddMetric("mallocs", metrics.NewInt(int64(m.Mallocs)))
	em.AddMetric("frees", metrics.NewInt(int64(m.Frees)))
	dataChan <- em
	l.Info(em.String())
}
func counterRuntimeVars ( dataChan chan * metrics . EventMetrics , ts time . Time , m * runtime . MemStats , l * logger . Logger ) { em := metrics . NewEventMetrics ( ts ) . AddLabel ( " " , " " ) . AddLabel ( " " , " " ) timeSince := time . Since ( startTime ) . Seconds ( ) em . AddMetric ( " " , metrics . NewFloat ( timeSince * 1000 ) ) em . AddMetric ( " " , metrics . NewInt ( int64 ( timeSince ) ) ) em . AddMetric ( " " , metrics . NewFloat ( float64 ( m . PauseTotalNs ) / 1e6 ) ) em . AddMetric ( " " , metrics . NewInt ( int64 ( m . Mallocs ) ) ) em . AddMetric ( " " , metrics . NewInt ( int64 ( m . Frees ) ) ) dataChan <- em l . Info ( em . String ( ) ) }
counterRuntimeVars exports counter runtime stats, stats that grow through
the lifetime of the process.
counterRuntimeVars exports counter runtime stats stats that grow through the lifetime of the process .
// Time since this module started. // TODO: Deprecate "uptime" in favor of "uptime_msec". // GC memory stats