Hello!
I found this via https://github.com/tsenart/vegeta/blob/master/lib/metrics.go
One feature I'd like is to be able to reset the computation back to initial state. I'm capturing performance metrics over a long-lived data stream, and would like to snapshot the behavior every X seconds or so.
I could just make new objects, but it seems it would be nice to re-used the existing ones, especially since you have a pool already.
Or do you think this is a needless optimization and I should just make new objects?
thanks!
nickg
Hello!
I found this via https://github.com/tsenart/vegeta/blob/master/lib/metrics.go
One feature I'd like is to be able to reset the computation back to initial state. I'm capturing performance metrics over a long-lived data stream, and would like to snapshot the behavior every X seconds or so.
I could just make new objects, but it seems it would be nice to re-used the existing ones, especially since you have a pool already.
Or do you think this is a needless optimization and I should just make new objects?
thanks!
nickg