This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: time usage for subprocesses
- To: Zack Weinberg <zack at bitmover dot com>
- Subject: Re: time usage for subprocesses
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sat, 07 Aug 1999 00:12:42 -0600
- cc: egcs-patches at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <199908070600.XAA07912@zack.bitmover.com>you write:
> The alternatives seem to be getrusage and times, and - as far as I can
> tell - they will only report *combined* child process times, which
> defeats the purpose. I could put the reporting code into the
> children, but I liked that the change was limited to the driver.
But it's trivial to get deltas given the rusage stats as you wait on
each process in succession.
> At least initially, are you happy with the feature not working on
> systems without wait4?
I'd really prefer not to depend on wait4. It's highly unportable.
jeff