[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Execution replay for Qt/KDE applications
From:       Matthias Kalle Dalheimer <kalle () kdab ! net>
Date:       2004-10-21 12:45:18
Message-ID: 200410211445.19511.kalle () kdab ! net
[Download RAW message or body]

On Wednesday 20 October 2004 22:43, David Faure wrote:
> On Wednesday 20 October 2004 22:36, Oliver Oppitz wrote:
> > On Monday 18 October 2004 00:03, Oliver Oppitz wrote:
> > > One can either "replay at recording speed" (with the same delays), or
> > > "replay at full speed",
> > > which is more useful for debugging since the replay is very fast.
> >
> > What does "with the same delays" mean precisely? If the tool measures the
> > delay (e.g. in ms, us) and reproduces this delay in the replay this does
> > not _necessarily_ guarantee identical execution patterns because:
> > - the machine may have different load during the replay
> > - the precision of ms may not be good enough
>
> Yes.
>
> > To guarantee an identical replay one needs reconstruct the exact call
> > graph i.e. insert the invents in the same invocation of the event loop.
>
> That's only one solution to the problem (which would involve some kind
> of valgrind integration - a rather complex and non-portable solution...).
>
> Another solution (provided by KDX) is to insert synchronization points.
> While recording you can say "now wait for this widget to exist" or
> "wait for this widget to have the property foo with value bar", etc.
>
> > Also, an execution-replay tool would need to capture all input from files
> > that the program works on. Does KDExecutor do this?
>
> I'm not sure, actually. Kalle?

It doesn't really have to. As long as the file is at the same location during 
playback, it will operate the file dialog, thus load the file, and then 
continue to drive the program. Of course, the file contents needs to be the 
same during recording and playback, that can be ensured with a Setup Command.

Kalle

-- 
Matthias Kalle Dalheimer
President & CEO
Klarälvdalens Datakonsult AB
Platform-independent software solutions

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic