[project @ 2005-11-03 11:05:38 by simonmar]
authorsimonmar <unknown>
Thu, 3 Nov 2005 11:05:38 +0000 (11:05 +0000)
committersimonmar <unknown>
Thu, 3 Nov 2005 11:05:38 +0000 (11:05 +0000)
commitcc2926f3a6942e6c512bb64bfe2c2a6aae2c72b4
tree8ed575dc70b29025fc4ecc61c7b77da0815382df
parent74df0d16d17647ab46344802ed57533d38727479
[project @ 2005-11-03 11:05:38 by simonmar]
Improvments to time-measurement and stats:

  - move all the platform-dependent timing related stuff into
    posix/GetTime.c and win32/GetTime.c, with the machine-indepent
    interface specified in GetTime.h.  This is now used by
    Stats.c.

  - On Unix, use gettimeofday() and getrusage() by default, falling
    back to time() if one of these isn't available.

  - try to implement thread-specfic CPU-time measurement using
    clock_gettime() on Unix.  Doesn't work reliably on Linux, because
    the implemenation tries to use the processor TSC, which on an
    SMP machine goes wrong when the thread moves between CPUs.  However,
    it's slightly less bogus that before, and hopefully will improve
    in the future.
ghc/rts/GetTime.h [new file with mode: 0644]
ghc/rts/Stats.c
ghc/rts/Stats.h
ghc/rts/Task.c
ghc/rts/Task.h
ghc/rts/package.conf.in
ghc/rts/posix/GetTime.c [new file with mode: 0644]
ghc/rts/win32/GetTime.c [new file with mode: 0644]