This commit is contained in:
flywind 2021-04-07 04:08:59 +08:00 • committed by GitHub
commit 34c1c631bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -9,7 +9,8 @@
## Profiling support for Nim. This is an embedded profiler that requires
## `--profiler:on`. You only need to import this module to get a profiling
## report at program exit.
## report at program exit. See `Embedded Stack Trace Profiler <estp.html>`_
## for usage.
when not defined(profiler) and not defined(memProfiler):
{.error: "Profiling support is turned off! Enable profiling by passing `--profiler:on --stackTrace:on` to the compiler (see the Nim Compiler User Guide for more options).".}