Dylan DPC
3c11bf3d2b
Rollup merge of #97384 - nnethercote:fix-metadata-stats, r=bjorn3
Fix metadata stats.
This commit:
- Counts some things that weren't being counted previously, and adds
an assertion that ensure everything is counted.
- Reorders things so the `eprintln`s order matches the code order.
- Adds percentages, and makes clear that the zero bytes count is orthogonal to
the other measurements.
Example of the new output:
```
55463779 metadata bytes, of which 18054531 bytes (32.6%) are zero
preamble: 30 bytes ( 0.0%)
dep: 0 bytes ( 0.0%)
lib feature: 17458 bytes ( 0.0%)
lang item: 337 bytes ( 0.0%)
diagnostic item: 1788 bytes ( 0.0%)
native lib: 0 bytes ( 0.0%)
foreign modules: 5113 bytes ( 0.0%)
def-path table: 720180 bytes ( 1.3%)
traits: 359 bytes ( 0.0%)
impls: 64624 bytes ( 0.1%)
incoherent_impls: 130 bytes ( 0.0%)
mir: 16137354 bytes (29.1%)
item: 23773099 bytes (42.9%)
interpret_alloc_index: 599 bytes ( 0.0%)
proc-macro-data: 0 bytes ( 0.0%)
tables: 10081135 bytes (18.2%)
debugger visualizers: 0 bytes ( 0.0%)
exported symbols: 5666 bytes ( 0.0%)
hygiene: 1539390 bytes ( 2.8%)
def-path hashes: 2752564 bytes ( 5.0%)
source_map: 363540 bytes ( 0.7%)
final: 413 bytes ( 0.0%)
```
r? `@bjorn3`
2022-05-25 10:48:31 +02:00
..
2022-05-23 07:43:50 +02:00
2022-05-22 12:01:07 +03:00
2022-05-21 14:22:06 -04:00
2022-05-23 07:43:50 +02:00
2022-05-24 13:51:36 +02:00
2022-05-23 17:49:04 -04:00
2022-05-22 12:01:07 +03:00
2022-05-24 14:26:52 +01:00
2022-05-17 06:34:58 -04:00
2022-05-20 20:04:54 -04:00
2022-05-24 14:26:52 +01:00
2022-05-24 14:26:52 +01:00
2022-05-07 06:30:29 +00:00
2022-05-15 02:45:47 +03:00
2022-05-16 17:16:27 -05:00
2022-05-20 20:04:54 -04:00
2022-05-22 12:01:07 +03:00
2022-05-25 10:48:28 +02:00
2022-05-12 18:31:42 +09:00
2022-05-22 14:22:40 -07:00
2022-05-09 20:35:58 +08:00
2022-05-13 11:46:06 -04:00
2022-05-20 20:49:55 +00:00
2022-05-23 15:11:04 +02:00
2022-05-23 22:51:34 +02:00
2022-05-25 07:08:42 +09:00
2022-05-23 14:07:40 +02:00
2022-05-13 20:14:15 +02:00
2022-05-11 09:14:31 +02:00
2022-05-19 09:02:50 -05:00
2022-05-25 10:48:31 +02:00
2022-05-24 15:54:44 -07:00
2022-05-25 10:48:27 +02:00
2022-05-23 17:49:04 -04:00
2022-05-23 17:49:04 -04:00
2022-05-20 20:04:54 -04:00
2022-05-24 15:22:13 -07:00
2022-05-22 09:00:30 +00:00
2022-05-18 07:40:58 +09:00
2022-05-21 06:38:49 +00:00
2022-05-07 06:30:29 +00:00
2022-05-24 12:18:30 +09:00
2022-05-12 16:34:02 -07:00
2022-05-13 08:06:48 +02:00
2022-05-24 14:26:52 +01:00
2022-05-24 13:51:36 +02:00
2022-05-14 23:53:11 +00:00
2022-05-24 14:26:52 +01:00
2022-05-25 10:48:28 +02:00
2022-05-20 20:04:54 -04:00
2022-05-17 09:39:26 +00:00
2022-05-23 15:11:04 +02:00