-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using new metrics lib. #38
base: master
Are you sure you want to change the base?
Conversation
…-metrics for statter
config.GCStats = 1 | ||
} | ||
metricsConfig.EnableRuntimeMetrics = true | ||
metricsConfig.ProfileInterval = time.Duration(config.Interval * float64(time.Second)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe time.Duration(config.Interval) * time.Second
instead of time.Duration(config.Interval * float64(time.Second))
to omit float64()
?
@@ -1,139 +1,59 @@ | |||
// Copyright 2016 Iron.io |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's an open repo, and all other files contain this license info (please refer to #10).
I'd like to retain license info here.
} | ||
|
||
func (s *MultiStatter) NewTimer(component string, stat string, rate float32) *Timer { | ||
return newTimer(s, component, stat, rate) | ||
func AsStatField(input string) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like AsStatField()
is not in use anywhere.
API changed, need to merge PR in iron-io/go to build runner docker image