Re: [Rd] Rprof loses all system() time

2009-06-12 Thread Gabor Grothendieck
You could run proc.time() before and after each system call. x <- proc.time() # do something y <- proc.time() y - x On Fri, Jun 12, 2009 at 5:31 PM, Andrew Piskorski wrote: > Rprof seems to ignore all time spent inside system() calls.  E.g., > this simple example actually takes about 10 seconds,

[Rd] Rprof loses all system() time

2009-06-12 Thread Andrew Piskorski
Rprof seems to ignore all time spent inside system() calls. E.g., this simple example actually takes about 10 seconds, but Rprof thinks the total time is only 0.12 seconds: > Rprof("sleep-system.out") ; system.time(system(command="sleep 10")) ; > Rprof(NULL) user system elapsed 0.000 0.0