[project @ 1997-07-11 19:24:42 by sof]
authorsof <unknown>
Fri, 11 Jul 1997 19:24:42 +0000 (19:24 +0000)
committersof <unknown>
Fri, 11 Jul 1997 19:24:42 +0000 (19:24 +0000)
cygwin32 now uses getrusage()

ghc/runtime/storage/SMstats.lc

index 9411b54..9e98bb7 100644 (file)
@@ -266,12 +266,15 @@ pagefaults(STG_NO_ARGS)
 static I_
 pagefaults(STG_NO_ARGS)
 {
-# if !defined(HAVE_GETRUSAGE) || irix_TARGET_OS || cygwin32_TARGET_OS
+# if !defined(HAVE_GETRUSAGE) || irix_TARGET_OS
     return 0;
 # else
     struct rusage t;
 
     getrusage(RUSAGE_SELF, &t);
+    /* cygwin32 note: Last time I looked (b18), the ru_majflt field
+       was always filled in with a 0. -- SOF (ToDo: Win32ify?)
+    */
     return(t.ru_majflt);
 # endif
 }