Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: Using Debugger to benchmark loop execution times
Reply to topic
Author Message
snovotill



Joined: Feb 8, 2013
Posts: 80

PostPosted: Dec 28, 2013 5:29 AM    Post subject: Using Debugger to benchmark loop execution times

Hi Jarek, I noticed that Debugger is able to drop timestamps. What do I feed into it to make it drop a time stamp once per execution loop please?
snovotill



Joined: Feb 8, 2013
Posts: 80

PostPosted: Dec 28, 2013 5:37 AM    Post subject:

Hmm, I wonder if SystemEventSource could be given an option to output LOOP_STAR and LOOP_END for use with Debugger and ms resolution timestamps?
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Dec 28, 2013 6:15 AM    Post subject:

You can get this information using TimeSource when selected with millisecond precision.

It will output the start time of the current loop, one time per each loop.

There is no way to get the end time of the loop though.
snovotill



Joined: Feb 8, 2013
Posts: 80

PostPosted: Dec 28, 2013 6:44 AM    Post subject:

That's perfect, thanks. Is there any possibility that loops could overlap, for instance if one loop happens to takes too long to execute? I know that would be a bad thing but the question can still be asked ;o)
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Dec 28, 2013 7:44 AM    Post subject:

No, loops can't overlap. If a loop takes too long to process, then the wait time (defined in design settings) between loops is shorter.
Reply to topic