Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Profiling a function execution
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Ville-Pertti Keinonen <will@e...>
Subject: Re: [Caml-list] Profiling a function execution
On Tue, Nov 25, 2003 at 07:05:53PM +0100, Xavier Leroy wrote:

> At least under Linux, getrusage() doesn't provide more accuracy than
> times(), since the kernel maintains user and system time as an
> integral number of clock ticks.  I haven't looked at other Unix
> kernels, but I suspect that the additional precision made possible by
> the getrusage() syscall is simply not exploited.  

4.4 BSD derivatives (except Darwin/MacOS X).


> (Besides, times() is part of the POSIX standard while getrusage() is not,
> meaning less portability.)

You can always use something like #ifdef HAS_GETRUSAGE

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: