time usage for subprocesses [NEW PATCH]

Michael Meissner meissner@cygnus.com
Thu Aug 12 20:22:00 GMT 1999


| Jeffrey A Law wrote:
| > 
| >   In message < 199908070639.XAA08070@zack.bitmover.com >you write:
| >   > Jeffrey A Law wrote:
| >   > > But it's trivial to get deltas given the rusage stats as you wait on
| >   > > each process in succession.
| >   > 
| >   > My impression was that times() and getrusage(RUSAGE_CHILDREN, ...)
| >   > would give me cumulative execution times for all the children up to
| >   > the moment I made the call.  Is that not the case?
| > Right, but all that means is you have to subtract the last sample from the
| > new sample to get the run time for whatever pass you just ran.
| 
| I get it now... and doing it this way, I don't have to modify
| libiberty.  On the other hand, I have to turn off -pipe, but that's
| OK.  New patch follows.

At some point it would be nice if wait4 exists to use that so that on such
systems (most UNIX varients these days and cygwin), you don't have to disable
-pipe.

--
Michael Meissner, Cygnus Solutions
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886
email: meissner@cygnus.com	phone: 978-486-9304	fax: 978-692-4482



More information about the Gcc-patches mailing list