Commit 48baf76
committed
normalize_symbol_name: also strip numeric suffix
Some symbols also have a numeric suffix, e.g. in `<core::fmt::Error as core::fmt::Debug>::fmt::h863044c0549d7049.60`.
This results in spurious diffs, e.g. when running `./target/release/collector binary_stats +6f3eb1ce3d50246b2cbc5de3107c0f34889f5cc6 --rustc2 +2105ceeb0f23267f160392bd0e43b1c647590aac --include helloworld-tiny --profile Opt --backend Llvm --symbols`, I see:
```
│ <core::fmt::Error as core::fmt::Debug>::fmt.60 │ 26 B │ 0 B │ -26 │ -100.0% │
│ <core::fmt::Error as core::fmt::Debug>::fmt.72 │ 0 B │ 26 B │ +26 │ +100.0% │
```1 parent 5c905e5 commit 48baf76
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
0 commit comments