From 73064dcff0e1734f0bccab4491093ed854975d21 Mon Sep 17 00:00:00 2001 From: sof Date: Mon, 4 Feb 2002 20:12:09 +0000 Subject: [PATCH] [project @ 2002-02-04 20:12:08 by sof] stat_getElapsedTime(): now visible when RTS_SUPPORTS_THREADS is defined (was: SMP only) --- ghc/rts/Stats.c | 6 ++++-- ghc/rts/Stats.h | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ghc/rts/Stats.c b/ghc/rts/Stats.c index fab773c..9002164 100644 --- a/ghc/rts/Stats.c +++ b/ghc/rts/Stats.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Stats.c,v 1.42 2002/01/24 07:50:01 sof Exp $ + * $Id: Stats.c,v 1.43 2002/02/04 20:12:08 sof Exp $ * * (c) The GHC Team, 1998-1999 * @@ -579,7 +579,7 @@ stat_endHeapCensus(void) stats for this thread into the task_ids struct for that thread. -------------------------------------------------------------------------- */ -#ifdef SMP +#if defined(SMP) void stat_workerStop(void) { @@ -599,7 +599,9 @@ stat_workerStop(void) } } } +#endif +#if defined(RTS_SUPPORTS_THREADS) long int stat_getElapsedTime () { getTimes(); diff --git a/ghc/rts/Stats.h b/ghc/rts/Stats.h index d6ab463..7365f54 100644 --- a/ghc/rts/Stats.h +++ b/ghc/rts/Stats.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Stats.h,v 1.15 2002/01/24 07:50:02 sof Exp $ + * $Id: Stats.h,v 1.16 2002/02/04 20:12:09 sof Exp $ * * (c) The GHC Team, 1998-1999 * @@ -47,6 +47,6 @@ extern double mut_user_time_during_heap_census(void); extern void statDescribeGens( void ); extern HsInt getAllocations( void ); -#ifdef SMP +#if defined(RTS_SUPPORTS_THREADS) extern long int stat_getElapsedTime ( void ); #endif -- 1.7.10.4