diff options
author | Ian Lynagh <igloo@earth.li> | 2006-09-05 14:15:45 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2006-09-05 14:15:45 +0000 |
commit | 93db1991b5cacf8357493a2e17fbbfb485f3205b (patch) | |
tree | 4a9ebcc89dfbf9a106d42ec63b764cc7d0abdce2 /rts/Timer.h | |
parent | c18587da71e16b581c293baee8d4af119b108da7 (diff) | |
download | haskell-93db1991b5cacf8357493a2e17fbbfb485f3205b.tar.gz |
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.
Diffstat (limited to 'rts/Timer.h')
-rw-r--r-- | rts/Timer.h | 11 |
1 files changed, 2 insertions, 9 deletions
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 */ |