Class MemAssertion
The MemAssertion class provides static methods for making assertions about the memory usage of the profiled process.
Inheritance
Inherited Members
Namespace: SciTech.NetMemProfiler
Assembly: SciTech.MemProfilerApi.dll
Syntax
public static class MemAssertion
Methods
Name | Description |
---|---|
Assert(Assertions |
Asserts that the memory usage since the last call to Mem |
Assert(Assertions |
Asserts that the memory usage since the last call to Mem |
Assert(Mem |
Asserts that the memory usage since the noteAllocations for all threads are always considered for the allocation assertions (Assertions |
Assert(Mem |
Asserts that the memory usage since the |
Begin |
Begins an assertions session. An assertions session is used to reduce the number of garbage collections performed when doing memory assertions and to avoid memory side effects. |
Begin |
Begins an assertions session and creates an Assertions |
Begin |
Begins an assertions session and creates an Assertions |
End |
Ends an assertions session previously started by a call to Begin |
No |
This NoInstances assertion accepts a single type name. The type name can end with a '' to allow all types starting with a common string to be matched. This can be used to include all types in a namespace (e.g. "System.Windows.Forms." will include all types in the System.Windows.Forms namespace). |
No |
This NoInstances assertion accepts an array of type names to check. The type names can end with a '' to allow all types starting with a common string to be matched. This can be used to include all types in a namespace (e.g. "System.Windows.Forms." will include all types in the System.Windows.Forms namespace). |
No |
This NoInstances assertion accepts a single System. |
No |
This NoInstances assertion accepts a single System. |
No |
This NoInstances assertion accepts an array of System. |
No |
This NoInstances assertion accepts an array of System. |
No |
This NoNewInstances method will assert that no live instances, created
by the calling thread, exists on the GC heap that did not exist on the GC heap at the time of last
call to Mem |
No |
This NoNewInstances assertion takes a single Assertions |
No |
This NoNewInstances method will assert that no live instances, created by the calling thread, exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. |
No |
This NoNewInstances method will assert that no live instances exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked. |
No |
This NoNewInstances assertion will assert that no live instances of the type with the specified name exist on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. |
No |
This NoNewInstances assertion will assert that no live instances of the type with the specified name exist on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked. |
No |
This NoNewInstances assertion will assert that no live instances of the types with the specified names exist on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. |
No |
This NoNewInstances assertion will assert that no live instances of the specified Type exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. |
No |
This NoNewInstances assertion will assert that no live instances of the specified Type exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked. |
No |
This NoNewInstances assertion will assert that no live instances of the specified Type (and optionally its subclasses) exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. |
No |
This NoNewInstances assertion will assert that no live instances of the specified Type (and optionally its subclasses) exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked. |
No |
This NoNewInstances assertion will assert that no live instances of the specified Types exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. |
No |
This NoNewInstances assertion will assert that no live instances of the specified Types exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked. |
No |
This NoNewInstances assertion will assert that no live instances of the specified Types (and optionally their subclasses) exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. |
No |
This NoNewInstances assertion will assert that no live instances of the specified Types (and optionally their subclasses) exists on the GC heap that did not exist on the GC heap at the time of the comparison snapshot. Depending on the assertionsThread parameter, all new instances or only instances created by the calling thread, will be checked. |
No |
This NoNewInstances assertion will assert that no live instances of the type with the specified name exists
on the GC heap that did not exist on the GC heap at the time of last call to
Mem |
No |
This NoNewInstances assertion will assert that no live instances of the type with the specified name
exists on the GC heap that did not exist on the GC heap at the time of last call to
Mem |
No |
This NoNewInstances assertion will assert that
no live instances of the types with the specified names exist on the GC heap that did not exist on
the GC heap at the time of last call to Mem |
No |
This NoNewInstances assertion will assert that no live instances of the types with the specified names
exist on the GC heap that did not exist on the GC heap at the time of last call to
Mem |
No |
This NoNewInstances assertion will assert that
no live instances of the specified Type exists on the GC heap that did not exist on
the GC heap at the time of last call to Mem |
No |
This NoNewInstances assertion will assert that no live instances of the specified Type exists on the
GC heap that did not exist on the GC heap at the time of last call to
Mem |
No |
This NoNewInstances assertion will assert that no live instances of the specified Type (and optionally
its subclasses) exists on the GC heap that did not exist on
the GC heap at the time of last call to Mem |
No |
This NoNewInstances assertion will assert that no live instances of the specified Type (and optionally
its subclasses) exists on the GC heap that did not exist on
the GC heap at the time of last call to Fast |
No |
This NoNewInstances assertion will assert that
no live instances of the specified Types exists on the GC heap that did not exist on
the GC heap at the time of last call to Mem |
No |
This NoNewInstances assertion will assert that no live instances of the specified Types exists on the
GC heap that did not exist on the GC heap at the time of last call to
Mem |
No |
This NoNewInstances assertion will assert that no live instances of the specified Types (and optionally
their subclasses) exists on the GC heap that did not exist on
the GC heap at the time of last call to Mem |
No |
This NoNewInstances assertion will assert that no live instances of the specified Types (and optionally
their subclasses) exists on the GC heap that did not exist on
the GC heap at the time of last call to Mem |
No |
This NoNewInstances method will assert that the only new live instances, created since the comparison snapshot, are instances of the type with the specified name. |
No |
This NoNewInstances method will assert that the only new live instances, created since the comparison
snapshot, are instances
of the type with the specified name.
Depending on the |
No |
This NoNewInstances method will assert that the only new live instances, created since the comparison snapshot, are instances of one of the types with specified names. |
No |
This NoNewInstances method will assert that the only new live instances, created since the comparison
snapshot, are instances
of one of the types with the specified names.
Depending on the |
No |
This NoNewInstances method will assert that the only new live instances, created since the comparison
snapshot, are instances of the specified System. |
No |
This NoNewInstances method will assert that the only new live instances, created since the comparison
snapshot, are instances
of the specified System. |
No |
This NoNewInstances method will assert that the only new live instances, created since the comparison
snapshot, are instances of the specified System. |
No |
This NoNewInstances method will assert that the only new live instances, created since the comparison
snapshot, are instances
of the specified System. |
No |
This NoNewInstances method will assert that the only new live instances, created since the comparison
snapshot, are instances
of one of the specified System. |
No |
This NoNewInstances method will assert that the only new live instances, created since the comparison
snapshot, are instances
of one of the specified System. |
No |
This NoNewInstances method will assert that the only new live instances, created since the comparison
snapshot, are instances
of one of the specified System. |
No |
This NoNewInstances method will assert that the only new live instances, created since the comparison
snapshot, are instances
of one of the specified System. |
No |
This NoNewInstances method will assert that the only new live instances, created since the last
call to Mem |
No |
This NoNewInstances method will assert that the only new live instances, created since the last
call to Mem |
No |
This NoNewInstances method will assert that the only new live instances, created since the last
call to Mem |
No |
This NoNewInstances method will assert that the only new live instances, created since the last
call to Mem |
No |
This NoNewInstances method will assert that the only new live instances, created since the last
call to Mem |
No |
This NoNewInstances method will assert that the only new live instances, created since the last
call to Mem |
No |
This NoNewInstances method will assert that the only new live instances, created since the last
call to Mem |
No |
This NoNewInstances method will assert that the only new live instances, created since the last
call to Mem |
No |
This NoNewInstances method will assert that the only new live instances, created since the last
call to Mem |
No |
This NoNewInstances method will assert that the only new live instances, created since the last
call to Mem |
No |
This NoNewInstances method will assert that the only new live instances, created since the last
call to Mem |
No |
This NoNewInstances method will assert that the only new live instances, created since the last
call to Mem |
Events
Name | Description |
---|---|
Assertion |
Invoked when a memory assertion has failed. |