Arun
2007-Jan-09 13:24 UTC
[dtrace-discuss] how long do interactive users wait for scripts/programs to run ?
I want to know how long do interactive users wait for scripts/programs to run using DTrace? Please help me out in this regard... Thanks and Regards, Arun DK This message posted from opensolaris.org
Angelo Rajadurai
2007-Jan-09 13:56 UTC
[dtrace-discuss] how long do interactive users wait for scripts/programs to run ?
Arun: Not sure if this is what you are asking. In DTrace you subscribe for probes and wait for these probes to fire. So the script will run until you stop it (or call exit() from within). So to terminate a script just hit ^c. Hopefully this answered what you wanted? -Angelo On 9 Jan 2007, at 08:24, Arun wrote:> I want to know how long do interactive users wait for scripts/programs > to run using DTrace? > Please help me out in this regard... > > Thanks and Regards, > Arun DK > > > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org
Michael Schuster
2007-Jan-09 15:01 UTC
[dtrace-discuss] how long do interactive users wait for scripts/programs to run ?
Angelo Rajadurai wrote:> Arun: > > Not sure if this is what you are asking. In DTrace you subscribe > for probes and wait for these probes to fire. So the script will run > until you stop it (or call exit() from within). So to terminate a script > just hit ^c. > > Hopefully this answered what you wanted?I actually understood this a bit differently: I think Arun wants to measure the delay between someone pressing return on a commandline and the program actually "running". There''s a few things that come to mind: - you need to monitor the user''s shell to catch the ''return'' - you need to define what constitutes a "running" program (probably not as easy as it sounds). Michael>> I want to know how long do interactive users wait for scripts/programs >> to run using DTrace? >> Please help me out in this regard...-- Michael Schuster Sun Microsystems, Inc.