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

Function/aggregate/symbol names #2

Open
John-Colvin opened this issue Dec 5, 2018 · 1 comment
Open

Function/aggregate/symbol names #2

John-Colvin opened this issue Dec 5, 2018 · 1 comment

Comments

@John-Colvin
Copy link

It would be nice if we could get symbol names as well as line-col numbers.

@CyberShadow
Copy link
Owner

Have a look at the dmdprof_get_loc function at the top of dmdprof.py; you can make it look for a symbol name in the arguments it checks, in the same way it checks for location. (If you don't know where to start, just pause dmd randomly in gdb while it's compiling your code, then look at its stack trace, and figure out how to get the identifier from stack function arguments.)

Alternatively, you can change the linkify program to also emit links to files in your codebase, which would make inspecting the results easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants