diff options
author | Neelesh Chandola <neelesh.chandola@outlook.com> | 2018-12-19 14:32:20 +0530 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-12-19 10:02:20 +0100 |
commit | 48437d0a840a0be805dd19e842c39b2ca43f6712 (patch) | |
tree | 7d6742ad1e90dbd9d34c362cff5dfaed28f2f0b3 | |
parent | 642ce799ecde26f79984e32a9337ec1bf1c2e751 (diff) | |
download | Nim-48437d0a840a0be805dd19e842c39b2ca43f6712.tar.gz |
Give better error message when profiler and memProfiler used at same time (#9948)
* Give better error message when profiler and memProfiler used at same time * Move to profiler.nim
-rw-r--r-- | lib/system/profiler.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/system/profiler.nim b/lib/system/profiler.nim index 57b8af42d..0649f1176 100644 --- a/lib/system/profiler.nim +++ b/lib/system/profiler.nim @@ -13,6 +13,9 @@ # (except perhaps loops that have no side-effects). At every Nth call a # stack trace is taken. A stack tace is a list of cstrings. +when defined(profiler) and defined(memProfiler): + {.error: "profiler and memProfiler cannot be defined at the same time (See Embedded Stack Trace Profiler (ESTP) User Guide) for more details".} + {.push profiler: off.} const |