cachegrind: ignore leading path to the benchmarked rustls checkout #31
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For each PR benchmark we create two checkouts of the rustls repository, each one in its own directory (e.g.
/tmp/.tmpZE2KDR
and/tmp/.tmpq8vPPQ
). As a consequence, when comparing the cachegrind output the diff tool fails to correlate the functions of both runs. The result is a totally useless diff, where all instructions from the baseline are considered to have disappeared and all instructions from the candidate to have appeared (for an example, see https://bench.rustls.dev/comparisons/371463d8129f4f0541e38063358ec2ad4428a44a:453cf7968b251b22db5bcadebefe3ea37125b630/cachegrind-diff/handshake_tickets_aws_lc_rs_1.2_rsa_aes_server)This commit tells cachegrind to ignore the leading path (everything up to
target/release/build
), restoring the ability to track individual rustls functions.