Class MaxNewBytesAttribute
Checks that no more than a specific number of new bytes exist after the target method has been executed.
Inherited Members
Namespace: SciTech.NetMemProfiler
Assembly: SciTech.MemProfilerApi.dll
Syntax
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class MaxNewBytesAttribute : 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(Type[], Boolean, Int64) and AssertionAttribute.
Constructors
Name | Description |
---|---|
MaxNewBytesAttribute(String, Int64) | Initializes a new instance of MaxNewBytesAttribute with the type name of the instances that should be checked and the maximum number of new bytes allowed. |
MaxNewBytesAttribute(String[], Int64) | Initializes a new instance of MaxNewBytesAttribute with the type names of the instances that should be checked and the maximum number of new bytes allowed. |
MaxNewBytesAttribute(Type, Int64) | Initializes a new instance of MaxNewBytesAttribute with the type of the instances that should be checked and the maximum number of new bytes allowed. |
MaxNewBytesAttribute(Type[], Int64) | Initializes a new instance of MaxNewBytesAttribute with the types of the instances that should be checked and the maximum number of new bytes allowed. |
Properties
Name | Description |
---|---|
ByteCount | Gets a value indicating the maximum number of new bytes that should exist after the target method has been executed. |