Chronicle-Threads icon indicating copy to clipboard operation
Chronicle-Threads copied to clipboard

Add an EventLoop status report

Open minborg opened this issue 5 years ago • 2 comments

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.

minborg avatar Nov 03 '20 15:11 minborg

I assume we can do this without changing anything in threads.

RobAustin avatar Dec 16 '20 12:12 RobAustin

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.

beataburreau avatar Aug 11 '22 13:08 beataburreau