-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit b563109
authored
Rollup merge of #142934 - nnethercote:tweak-macro-stats, r=petrochenkov
Tweak `-Zmacro-stats` measurement.
It currently reports net size, i.e. size(output) - size(input). After some use I think this is sub-optimal, and it's better to just report size(output). Because for derive macros the input size is always 1, and for attribute macros it's almost always 1.
r? ```@petrochenkov```File tree
4 files changed
+35
-43
lines changed- compiler
- rustc_expand/src
- rustc_interface/src
- src/doc/unstable-book/src/compiler-flags
- tests/ui/stats
4 files changed
+35
-43
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 | - | ||
19 | - | ||
20 | - | ||
21 | - | ||
22 | - | ||
23 | - | ||
24 | - | ||
25 | - | ||
26 | - | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
27 | 23 |
| |
28 | 24 |
| |
29 | 25 |
| |
| |||
131 | 127 |
| |
132 | 128 |
| |
133 | 129 |
| |
134 | - | ||
135 | - | ||
136 | - | ||
137 | - | ||
138 | 130 |
| |
139 | 131 |
| |
140 | 132 |
| |
141 | 133 |
| |
142 | - | ||
143 | - | ||
134 | + | ||
135 | + | ||
144 | 136 |
| |
145 | 137 |
| |
146 | 138 |
| |
| |||
157 | 149 |
| |
158 | 150 |
| |
159 | 151 |
| |
160 | - | ||
152 | + | ||
161 | 153 |
| |
162 | 154 |
| |
163 | 155 |
| |
| |||
166 | 158 |
| |
167 | 159 |
| |
168 | 160 |
| |
169 | - | ||
170 | - | ||
161 | + | ||
162 | + | ||
171 | 163 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
355 | 355 |
| |
356 | 356 |
| |
357 | 357 |
| |
358 | - | ||
358 | + | ||
359 | 359 |
| |
360 | - | ||
360 | + | ||
361 | 361 |
| |
362 | 362 |
| |
363 | 363 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | - | ||
14 | - | ||
13 | + | ||
14 | + | ||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 | - | ||
18 | + | ||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | - | ||
6 | - | ||
7 | - | ||
8 | - | ||
9 | - | ||
10 | - | ||
11 | - | ||
12 | - | ||
13 | - | ||
14 | - | ||
15 | - | ||
16 | - | ||
17 | - | ||
18 | - | ||
19 | - | ||
20 | - | ||
21 | - | ||
22 | - | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
23 | 18 |
| |
24 | - | ||
25 | - | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | 26 |
|
0 commit comments