Checks that no more than a specific number of new bytes
exist after the target method has been executed.
Namespace:
SciTech.NetMemProfilerAssembly: MemProfiler2 (in MemProfiler2.dll)
Syntax
| C# |
|---|
[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = true)] public class MaxNewBytesAttribute : AssertionAttribute |
| Visual Basic |
|---|
<AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple := True)> _ Public Class MaxNewBytesAttribute _ Inherits AssertionAttribute |
| Visual C++ |
|---|
[AttributeUsageAttribute(AttributeTargets::Method, AllowMultiple = true)] public ref class MaxNewBytesAttribute : public AssertionAttribute |
Remarks
This attribute can be applied to methods to define that no more than a
specific number of new bytes should exist on the GC heap
after the target method has been executed.
For more information see AssertionsDefinition.MaxNewBytes(array<Type>[]()[][], Boolean, Int64) and AssertionAttribute.
Inheritance Hierarchy
System..::..Object
System..::..Attribute
SciTech.NetMemProfiler..::..AssertionAttribute
SciTech.NetMemProfiler..::..MaxNewBytesAttribute
System..::..Attribute
SciTech.NetMemProfiler..::..AssertionAttribute
SciTech.NetMemProfiler..::..MaxNewBytesAttribute
Thread Safety
Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.