Commit 73064dcf authored by sof's avatar sof
Browse files

[project @ 2002-02-04 20:12:08 by sof]

stat_getElapsedTime(): now visible when RTS_SUPPORTS_THREADS is defined (was: SMP only)
parent 53057d6f
/* -----------------------------------------------------------------------------
* $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();
......
/* -----------------------------------------------------------------------------
* $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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment