Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to profile? using `--profiler:on` causes: Error: undeclared identifier: 'framePtr' #8991

Closed
timotheecour opened this issue Sep 17, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@timotheecour
Copy link
Contributor

commented Sep 17, 2018

main.nim: empty

nim c --profiler:on main.nim
lib/system/profiler.nim(92, 23) Error: undeclared identifier: 'framePtr'

I was trying to see how to profile code, and was following https://nim-lang.org/docs/estp.html
I also tried following instructions in lib/pure/nimprof.nim:
import std/nimprof gives:

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).

adding --profiler:on gives, again, Error: undeclared identifier: 'framePtr'

links

@narimiran

This comment has been minimized.

Copy link
Member

commented Dec 9, 2018

Can confirm and reproduce on my end.

These exact steps used to work before, now they don't work neither in stable (0.19.0) nor devel.

@narimiran

This comment has been minimized.

Copy link
Member

commented Dec 9, 2018

Here is a workaround:

remove config.nims

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.