aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-05-05 18:07:25 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:42:28 -0700
commit0471638734257d479d21abcb490ed9459df42b9b (patch)
treee952a9b22f4d7f02cb42c616b5594d99f6c2156e /src/Compilation.zig
parent9ec0017f460854300004ab263bf585c2d376d1fb (diff)
downloadzig-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.zig5
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