Skip to content

mcount support?? #54500

New issue

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

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

Already on GitHub? # to your account

Closed
taeguk opened this issue Sep 23, 2018 · 3 comments
Closed

mcount support?? #54500

taeguk opened this issue Sep 23, 2018 · 3 comments

Comments

@taeguk
Copy link
Contributor

taeguk commented Sep 23, 2018

Is there mcount support in rustc??
Many profiling tools such as gprof and uftrace require mcount function. An user can use -pg option to add a mcount function call at the entry of each function in gcc or clang compiler.
Is there similar way to get same effect of using -pg option?

If there is no way to add the mcount function call, I want to suggest adding mcount support for utilizing existing profiling tools.

@steveklabnik
Copy link
Member

Please ask questions on https://users.rust-lang.org/, we try to keep the issue tracker for bugs only. Thanks!

@sanxiyn
Copy link
Member

sanxiyn commented Jan 13, 2019

This was a legitimate issue that shouldn't have been closed. mcount support got added in #57220.

@taeguk For better reception in the future, instead of "mcount support??", confidently write, "Support mcount". This was a feature that should be supported which rustc lacked. No need to be shy about that.

@taeguk
Copy link
Contributor Author

taeguk commented Jan 13, 2019

@sanxiyn Okay, I got it. thanks :)

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

No branches or pull requests

3 participants