Add an EventLoop status report
It would be nice to provide some kind of "top" command where information on various properties associated with EventLoops, pausers, priorities etc. could be easily viewed and understood.
This is something that could be very useful when running almost any library that is using Threads.
TID. TYPE %CPU Pauser
16422 VanillaEventLoop 100.0 BusyPauser
List of event handlers
17552 VanillaEventLoop 1.3% LongPauser
List of event handlers
The table above is just an outline and may not be possible or even desirable as exemplified.
I assume we can do this without changing anything in threads.
Had a chat with Rob and Peter on this issue and decided to collect statistics from pausers instead of EventLoops since that causes less impact on the system. The data should be collected and written to a Chronicle Queue periodically, e.g. in 1 second intervals. The data from the queue can then be further analysed by other applications or rendered to the screen.