jonhoo / tracing-timing

Inter-event timing metrics on top of tracing.
113 stars 11 forks source link

Automatically refresh histograms #1

Closed jonhoo closed 5 years ago

jonhoo commented 5 years ago

The requirement to call refresh(), and the fact that refresh() blocks until every thread that has recorded an event in the past records another event is a problem. We should mitigate this by having the library call refresh_timeout() regularly during operation so that the user doesn't have to do it. Alternatively, hdrhistogram's Recorder would have to be change to not require the whole refresh business in the first place..