Derek Rafter wrote:
> Hi,
>
> I am trying to find out how to automate measurement of the time taken 
> by gedit to load a large file.
> My problem is finding a suitable end point at which to stop measuring.
> How can my script know when gedit has completed loading a file ?  What 
> can I look for to trigger the measurement to stop ?
>
> I need a solution that can work on Solaris and Linux (so dtrace is out 
> here) and also does not interfere with the file load time.
>
> Thanks,
>
Without modifying the application or significantly slowing it down, this 
is going to be tricky.  One method
would be to plot the cpu usage vs time and estimate when it becomes 
sufficiently close to zero.

- Bart




Reply via email to