Merge "Allow logging internal allocator stats." into main