You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refs nim-lang#4451 (comment)
a flag --profiler should be sufficient and not require changing the sources with
whencompileOption("profiler"):
import nimprof
note that we can do --import:nimprof but that's also not satisfying as adds an import in all modules.
The exact same situation happens with libbacktrace, currently requiring either editing sources with import libbacktrace or passing --import:libbacktrace; see status-im/nim-libbacktrace#12
how about:
adding --importmain:foo flag to nim which only does the automatic import for the main module being compiled
refs nim-lang#4451 (comment)
a flag
--profiler
should be sufficient and not require changing the sources withnote that we can do
--import:nimprof
but that's also not satisfying as adds an import in all modules.The exact same situation happens with libbacktrace, currently requiring either editing sources with
import libbacktrace
or passing--import:libbacktrace
; see status-im/nim-libbacktrace#12how about:
--importmain:foo
flag to nim which only does the automatic import for the main module being compiled--import:libbacktrace
,-g
and--stacktrace:off
shouldn't be needed status-im/nim-libbacktrace#12)The text was updated successfully, but these errors were encountered: