diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2016-11-29 16:51:30 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-11-29 16:51:30 -0500 |
commit | 428e152be6bb0fd3867e41cee82a6d5968a11a26 (patch) | |
tree | e43d217c10c052704f872cd7e1df4d335c12d376 /rts/Proftimer.c | |
parent | 56d74515396c8b6360ba7898cbc4b68f0f1fb2ea (diff) | |
download | haskell-428e152be6bb0fd3867e41cee82a6d5968a11a26.tar.gz |
Use C99's bool
Test Plan: Validate on lots of platforms
Reviewers: erikd, simonmar, austin
Reviewed By: erikd, simonmar
Subscribers: michalt, thomie
Differential Revision: https://phabricator.haskell.org/D2699
Diffstat (limited to 'rts/Proftimer.c')
-rw-r--r-- | rts/Proftimer.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/rts/Proftimer.c b/rts/Proftimer.c index 4f4002a0e6..0c07194ed5 100644 --- a/rts/Proftimer.c +++ b/rts/Proftimer.c @@ -14,22 +14,22 @@ #include "Capability.h" #ifdef PROFILING -static rtsBool do_prof_ticks = rtsFalse; // enable profiling ticks +static bool do_prof_ticks = false; // enable profiling ticks #endif -static rtsBool do_heap_prof_ticks = rtsFalse; // enable heap profiling ticks +static bool do_heap_prof_ticks = false; // enable heap profiling ticks // Number of ticks until next heap census static int ticks_to_heap_profile; // Time for a heap profile on the next context switch -rtsBool performHeapProfile; +bool performHeapProfile; void stopProfTimer( void ) { #ifdef PROFILING - do_prof_ticks = rtsFalse; + do_prof_ticks = false; #endif } @@ -37,14 +37,14 @@ void startProfTimer( void ) { #ifdef PROFILING - do_prof_ticks = rtsTrue; + do_prof_ticks = true; #endif } void stopHeapProfTimer( void ) { - do_heap_prof_ticks = rtsFalse; + do_heap_prof_ticks = false; } void @@ -52,14 +52,14 @@ startHeapProfTimer( void ) { if (RtsFlags.ProfFlags.doHeapProfile && RtsFlags.ProfFlags.heapProfileIntervalTicks > 0) { - do_heap_prof_ticks = rtsTrue; + do_heap_prof_ticks = true; } } void initProfTimer( void ) { - performHeapProfile = rtsFalse; + performHeapProfile = false; ticks_to_heap_profile = RtsFlags.ProfFlags.heapProfileIntervalTicks; @@ -85,7 +85,7 @@ handleProfTick(void) ticks_to_heap_profile--; if (ticks_to_heap_profile <= 0) { ticks_to_heap_profile = RtsFlags.ProfFlags.heapProfileIntervalTicks; - performHeapProfile = rtsTrue; + performHeapProfile = true; } } } |