simonmar    2005/11/03 03:05:38 PST

  Modified files:
    ghc/rts              Stats.c Stats.h Task.c Task.h 
                         package.conf.in 
  Added files:
    ghc/rts              GetTime.h 
    ghc/rts/posix        GetTime.c 
    ghc/rts/win32        GetTime.c 
  Log:
  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.
  
  Revision  Changes    Path
  1.60      +55 -292   fptools/ghc/rts/Stats.c
  1.24      +22 -24    fptools/ghc/rts/Stats.h
  1.18      +8 -4      fptools/ghc/rts/Task.c
  1.11      +8 -6      fptools/ghc/rts/Task.h
  1.17      +3 -0      fptools/ghc/rts/package.conf.in
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to