You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extend NIOEventLoopTickInfo with end-time and loop sleep time (#3268)
### Motivation
NIO’s event loop can emit metrics. Currently, this includes the start
time (i.e. when the loop started working) and the number of tasks which
were executed in that tick.
It would be useful to collect the time the loop tick ended and the
length of time the loop was asleep before starting the tick.
### Modifications
The event loop has a new property to track the time between runs. The
tick info collects two new values:
* The time the loop finished: the end-time.
* The time since the last run: the sleep time.
For the first run, the sleep time is the time since the event loop was
created.
### Result
The new metrics are available for collection.
---------
Co-authored-by: George Barnett <[email protected]>
0 commit comments