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

--profile-time doesn't work #754

Open
codecnotsupported opened this issue Jan 24, 2024 · 1 comment
Open

--profile-time doesn't work #754

codecnotsupported opened this issue Jan 24, 2024 · 1 comment

Comments

@codecnotsupported
Copy link

[Title]

@Sewer56
Copy link

Sewer56 commented Feb 5, 2024

It's weird, I ran into it too. It works when invoked as cargo bench --bench my_benchmark --profile profile -- --profile-time 10, but when using 0.5.1, it doesn't work on the resulting binary, i.e. if you try to pass it to the file in deps folder.

Edit: I did some debugging of cargo bench with strace.
Seems you need to invoke it as --profile-time 10 --bench

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