dotMemory Unit
 
Get dotMemory Unit

Work with Traffic

Last modified: 05 September 2023

In terms of dotMemory, memory traffic is an integral estimate of how many objects were allocated and collected on a time interval. Large traffic affects app performance as garbage collections imply significant CPU overhead. dotMemory Unit offers two ways of checking memory traffic:

  • Using the AssertTraffic attribute for simple assertions. For example, when you just need to assert that traffic in a test doesn't exceed some value.

  • Using the Traffic class for more complex assertions. For example, check traffic of objects of a particular type on some specific time interval.