dotMemory Unit
 
Get dotMemory Unit

Introduction

Last modified: 23 November 2023

dotMemory Unit is an additional framework that pairs with popular unit testing frameworks. Its purpose is to let you write tests that check your code for all kinds of memory issues. For example, these can be tests that determine leaks by checking memory for objects of a particular type, or tests that track memory traffic and fail in case the traffic exceeds some threshold. In other words, dotMemory Unit extends the possibilities of your unit testing framework with the functionality of a memory profiler. More specifically, dotMemory Unit allows:

  • checking memory for objects of a certain type,

  • checking memory traffic,

  • getting difference between memory snapshots,

  • saving memory snapshots for further investigation in dotMemory (standalone .NET memory profiler).