func (s RuntimeService) Stats() stats.Metrics {
	metrics := make(stats.Metrics)
	metrics["NumCPU"] = runtime.NumCPU()
	metrics["NumGoroutine"] = runtime.NumGoroutine()
	return metrics
}
Stats is the implementation of Service.Stats
for RuntimeService
package gateway
import (
	"runtime"
	"github.com/oasislabs/oasis-gateway/stats"
)
type RuntimeService struct{}
func (s RuntimeService) Name() string {
	return "runtime"
}