Synchronizing logging and reporting

On Oct 17, 2008, at 10:38 , Ruben Smits wrote:

> Hi RTT-developers,
>
> is there a good reason why the time-stamp of the logging and the
> reporting is
> not synchronized? Because if not, i think it can be useful to
> synchronize both
> time-stamps, or at least add this functionality to the reporter so
> that they
> can be synchronized.
>
> The attachments contain two patches, unfortunately i had to add some
> function
> to the Logger.hpp to get the reference-time, but i did not see any
> other way
> to do this:
>
> * for the logger, to add functionality to get its reference-time
> * one for the reporter that adds a property if it has to synchronize.

Thanks for this patch, I had been thinking about doing something very
similar myself. Funnily enough, just today we were trying to match up
the time in a report file with the time in a logging file!

Cheers
S

Synchronizing logging and reporting

On Friday 17 October 2008 16:38:26 Ruben Smits wrote:
> Hi RTT-developers,
>
> is there a good reason why the time-stamp of the logging and the reporting
> is not synchronized? Because if not, i think it can be useful to
> synchronize both time-stamps, or at least add this functionality to the
> reporter so that they can be synchronized.
>
> The attachments contain two patches, unfortunately i had to add some
> function to the Logger.hpp to get the reference-time, but i did not see any
> other way to do this:
>
> * for the logger, to add functionality to get its reference-time
> * one for the reporter that adds a property if it has to synchronize.

Both look fine to me to be applied on trunk. Go for it :-)

Peter

Ruben Smits's picture

Synchronizing logging and reporting

On Monday 20 October 2008 10:29:58 Peter Soetens wrote:
> On Friday 17 October 2008 16:38:26 Ruben Smits wrote:
> > Hi RTT-developers,
> >
> > is there a good reason why the time-stamp of the logging and the
> > reporting is not synchronized? Because if not, i think it can be useful
> > to synchronize both time-stamps, or at least add this functionality to
> > the reporter so that they can be synchronized.
> >
> > The attachments contain two patches, unfortunately i had to add some
> > function to the Logger.hpp to get the reference-time, but i did not see
> > any other way to do this:
> >
> > * for the logger, to add functionality to get its reference-time
> > * one for the reporter that adds a property if it has to synchronize.
>
> Both look fine to me to be applied on trunk. Go for it :-)
I committed the patches to ocl and rtt trunk:

r29693 | rsmits | 2008-10-20 10:50:03 +0200 (Mon, 20 Oct 2008) | 1 line

Add getRefernceTime to logger API for synchronization with reporting

r29695 | rsmits | 2008-10-20 10:57:09 +0200 (Mon, 20 Oct 2008) | 1 line

Add synchronize with logger functionality for the reporter

Ruben