Classes

  Class Description
Public class AllowInstancesAttribute
Indicates that instances of the specified types are allowed to exist after the target method has been executed.
Public class AllowNewInstancesAttribute
Indicates that new instances of the specified types are allowed to exist after the target method has been executed.
Public class AssertionAttribute
Represents the base class for all memory assertion attributes.
Public class AssertionsDefinition
Defines the expected memory usage of operations performed between two heap snapshots.
Public class MaxBytesAttribute
Checks that no more than a specific number of bytes exist after the target method has been executed.
Public class MaxInstancesAttribute
Checks that no more than a specific number of instances exist after the target method has been executed.
Public class MaxNewBytesAttribute
Checks that no more than a specific number of new bytes exist after the target method has been executed.
Public class MaxNewInstancesAttribute
Checks that no more than a specific number of new instances exist after the target method has been executed.
Public class MemAssertion
The MemAssertion class provides static methods for making assertions about the memory usage of the profiled process.
Public class MemProfiler
The MemProfiler class provides static methods for interacting with the profiler, from within the profiled process.
Public class NoInstancesAttribute
Checks that no instances of the specified types exists after the target method has been executed.
Public class NoNewInstancesAttribute
Checks that no new instances of the specified types exists after the target method has been executed.
Public class TypeSet
The TypeSet class is used to define an immutable set of Types that can be used when building an AssertionsDefinition.

Structures

  Structure Description
Public structure MemAssertion..::..AssertionsSession
AssertionsSession represents an assertions session started by a call to BeginAssertions()()()().

By disposing an AssertionsSession instance the memory assertions session will be ended.

Public structure MemSnapShot
The MemSnapShot structure represents a snapshot of the garbage collected heap. It is returned by FastSnapShot()()()() and FullSnapShot()()()(). It can be used as a reference snapshot in calls to the MemAssertion methods.

Enumerations

  Enumeration Description
Public enumeration AssertionsThread
This enum defines the possible values for the assertionsThread parameter to the assertion methods NoNewInstances()()()() and NoNewInstancesExcept(Type).