Skip to content
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

Add support for continuous user-defined metrics #51

Open
shabalind opened this issue Jun 23, 2020 · 0 comments
Open

Add support for continuous user-defined metrics #51

shabalind opened this issue Jun 23, 2020 · 0 comments

Comments

@shabalind
Copy link
Collaborator

Currently only time and warmup time can be recorded as a time series, while counters provide a single aggregate value.

It would be great to add support for recording custom time series data:

benchmark("...") { state in
   while true {
     var v = ...
     state.measure {
       // benchmark body, modifies v
     }
     state.record(metric: "name", value: Double(v))
   }
}

For example, it can be used to report accuracy in ML models, where not only the final result is important but also the shape of the curve towards the converged score.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant