diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-05-05 18:07:25 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-10 20:42:28 -0700 |
| commit | 0471638734257d479d21abcb490ed9459df42b9b (patch) | |
| tree | e952a9b22f4d7f02cb42c616b5594d99f6c2156e /src/Compilation.zig | |
| parent | 9ec0017f460854300004ab263bf585c2d376d1fb (diff) | |
| download | zig-0471638734257d479d21abcb490ed9459df42b9b.tar.gz zig-0471638734257d479d21abcb490ed9459df42b9b.zip | |
InternPool: add a dump function
So we can see stats
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 15e393c35c..9b2128a590 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -2026,6 +2026,11 @@ pub fn update(comp: *Compilation, main_progress_node: *std.Progress.Node) !void try comp.performAllTheWork(main_progress_node); if (comp.bin_file.options.module) |module| { + std.debug.print("intern pool stats for '{s}':\n", .{ + comp.bin_file.options.root_name, + }); + module.intern_pool.dump(); + if (comp.bin_file.options.is_test and comp.totalErrorCount() == 0) { // The `test_functions` decl has been intentionally postponed until now, // at which point we must populate it with the list of test functions that |
