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
)
## Summary
Make routine instrumentation with `nimProfile` calls a MIR pass, moving
more logic out of the C code generator and working towards
`--profiler:on` support with all backends. `nimProfile` calls are also
no longer inserted into loops within `.asmNoStackFrame` routines.
## Details
* require a `ModuleGraph` instance for `mirpasses.applyPasses`, so that
compilerprocs can be looked up
* add the `injectProfilerCalls` MIR pass. It injects `nimProfile` in
the same way that `cgen` does
* remove injection of `nimProfile` calls from `cgen`
* don't instrument loops within `.asmNoStackFrame` procedures;
injection of `nimProfile` at procedure entry was already skipped for
these procedures
* temporarily remove the `optProfiler` option from symbols when in JIT
mode, that code generated for compile-time execution is not
instrumented
* add a test for the `--profiler:on` feature, to make sure it works and
keeps working
This shouldn't compile
The text was updated successfully, but these errors were encountered: