Skip to content

Add information on running the compiler with cachegrind and valgrind #1166

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

Open
rylev opened this issue Jul 4, 2021 · 1 comment
Open

Add information on running the compiler with cachegrind and valgrind #1166

rylev opened this issue Jul 4, 2021 · 1 comment
Labels
A-performance Area: performance C-enhancement Category: enhancement E-medium Difficulty: might require some prior knowledge or code reading T-compiler Relevant to compiler team WG-compiler-performance Working group: Compiler Performance

Comments

@rylev
Copy link
Member

rylev commented Jul 4, 2021

As a follow-up to #88, we should include more specifics on tools like cachegrind and valgrind. From the original issue:

those [tools] provide a slightly different and useful set of measurements but come with some caveats when invoking the profiler (i.e. making sure that the rustc executable is profiled, not cargo or the rustup wrapper).

@jyn514
Copy link
Member

jyn514 commented Jul 5, 2021

I expect something like env RUSTC="valgrind $(rustup which rustc)" should work in most cases, or if that syntax doesn't work then a wrapper script that does the same.

@jieyouxu jieyouxu added E-medium Difficulty: might require some prior knowledge or code reading C-enhancement Category: enhancement T-compiler Relevant to compiler team WG-compiler-performance Working group: Compiler Performance A-performance Area: performance labels Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-performance Area: performance C-enhancement Category: enhancement E-medium Difficulty: might require some prior knowledge or code reading T-compiler Relevant to compiler team WG-compiler-performance Working group: Compiler Performance
Projects
None yet
Development

No branches or pull requests

3 participants