lastrun.log: time info on threads

A7V

21-06-2004 13:56:31

Hi,

It would be nice to know the time each thread takes to poll each device and then the time it took to poll all devices.
By 'eyemeter' I can see that my current NetMRG takes about 3 seconds to do 170 pollings on 13 devices. Since I have a lot of devices to add this information can become very handy in some verifications.
Since this information is not needed at all times, a variable in the configuration file would be enough.

Current (stripped down) logfile

[code1fa75b560fb]NetMRG starting.
[Dev: 0002] Starting device thread.
[Dev: 0003] Starting device thread.
[Dev: 0004] Starting device thread.
[Dev: 0005] Starting device thread.
[Dev: 0006] Starting device thread.
[Dev: 0005] Ending device thread.
Thread Ended.
[Dev: 0007] Starting device thread.
[Dev: 0004] Ending device thread.
Thread Ended.
[Dev: 0008] Starting device thread.
[Dev: 0002] Ending device thread.
Thread Ended.
[/code1fa75b560fb]

Example 'I wanna' log

[code1fa75b560fb]NetMRG starting at 21-06-2004 18:50:00
[Dev: 0002] Starting device thread at 21-06-2004 18:50:00
[Dev: 0003] Starting device thread at 21-06-2004 18:50:01
[Dev: 0004] Starting device thread at 21-06-2004 18:50:02
[Dev: 0005] Starting device thread at 21-06-2004 18:50:03
[Dev: 0006] Starting device thread at 21-06-2004 18:50:05
[Dev: 0005] Ending device thread at 21-06-2004 18:50:06
Thread Ended.
[Dev: 0007] Starting device thread at 21-06-2004 18:50:07.
[Dev: 0004] Ending device thread at 21-06-2004 18:50:08
Thread Ended.
[Dev: 0008] Starting device thread at 21-06-2004 18:50:09
[Dev: 0002] Ending device thread at 21-06-2004 18:50:10
Thread Ended.
NetMRG ended at 21-06-2004 18:50:11
[/code1fa75b560fb]

Note this seemed the appropriate forum to post this situation. If not please move the message.

balleman

21-06-2004 14:27:34

Yes, this is the right place )

I've started a bug to track this issue.