mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-25 04:15:09 +00:00
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
This commit is contained in:
committed by
Andreas Rumpf
parent
642ce799ec
commit
48437d0a84
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user