halildurmus / win32

Access common Win32 APIs directly from Dart using FFI — no C required!
https://win32.pub
BSD 3-Clause "New" or "Revised" License
748 stars 121 forks source link

Create a LoggingAllocator class #669

Open timsneath opened 1 year ago

timsneath commented 1 year ago

A logging allocator class would behave as follows:

The logging allocator would help detect memory leaks during test runs, by validating that all memory allocated had been freed by the end of the run.

Idea inspired by @dcharkes.

halildurmus commented 1 year ago

Yes please!

timsneath commented 1 year ago

Potential solution: https://github.com/dart-lang/leak_tracker/issues/42