diff options
author | Dylan Yudaken <dylany@fb.com> | 2021-01-15 14:07:23 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-04-15 13:55:59 -0400 |
commit | 7c639b9a589f7e937f2343ae4bdfea2ba5b1f74b (patch) | |
tree | b107d71fc7429c754ded932c5b8650679889c779 | |
parent | 426ec4461c1723a8fe4be97404c7e6c10a10cee5 (diff) | |
download | haskell-7c639b9a589f7e937f2343ae4bdfea2ba5b1f74b.tar.gz |
Only enable PROF_SPIN in DEBUG
-rw-r--r-- | rts/include/rts/Config.h | 2 | ||||
-rw-r--r-- | testsuite/tests/rts/InternalCounters.stdout | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/rts/include/rts/Config.h b/rts/include/rts/Config.h index 289950af45..cb1e90a78d 100644 --- a/rts/include/rts/Config.h +++ b/rts/include/rts/Config.h @@ -49,4 +49,6 @@ /* Profile spin locks */ +#if defined(DEBUG) #define PROF_SPIN +#endif diff --git a/testsuite/tests/rts/InternalCounters.stdout b/testsuite/tests/rts/InternalCounters.stdout index d764d7bc19..54bfdfb9c2 100644 --- a/testsuite/tests/rts/InternalCounters.stdout +++ b/testsuite/tests/rts/InternalCounters.stdout @@ -1 +1 @@ -Internal Counters:
\ No newline at end of file +Internal Counters require the RTS to be built with PROF_SPIN
\ No newline at end of file |