From 93db1991b5cacf8357493a2e17fbbfb485f3205b Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 5 Sep 2006 14:15:45 +0000 Subject: new RTS flag: -V to modify the resolution of the RTS timer Fixed version of an old patch by Simon Marlow. His description read: Also, now an arbitrarily short context switch interval may now be specified, as we increase the RTS ticker's resolution to match the requested context switch interval. This also applies to +RTS -i (heap profiling) and +RTS -I (the idle GC timer). +RTS -V is actually only required for increasing the resolution of the profile timer. --- rts/Timer.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'rts/Timer.h') diff --git a/rts/Timer.h b/rts/Timer.h index ae26653462..1fe857d969 100644 --- a/rts/Timer.h +++ b/rts/Timer.h @@ -1,6 +1,6 @@ /* ----------------------------------------------------------------------------- * - * (c) The GHC Team, 1995-2005 + * (c) The GHC Team, 1995-2006 * * Interval timer service for profiling and pre-emptive scheduling. * @@ -9,16 +9,9 @@ #ifndef TIMER_H #define TIMER_H -# define TICK_MILLISECS (1000/TICK_FREQUENCY) /* ms per tick */ - -/* Context switch timing constants. Context switches happen after a - * whole number of ticks, the default being every tick. - */ -#define CS_MIN_MILLISECS TICK_MILLISECS /* milliseconds per slice */ - typedef void (*TickProc)(int); -extern int startTimer(nat ms); +extern int startTimer(void); extern int stopTimer(void); #endif /* TIMER_H */ -- cgit v1.2.1