fn detectLeaks(self: *Self) bool
Emits log messages for leaks and then returns whether there were any leaks.
self: *Self,