Search Results for

    Show / Hide Table of Contents

    Class MaxAllocatedBytesAttribute

    Checks that no more than a specific number of bytes are allocated by the target method.

    Inheritance
    System.Object
    System.Attribute
    AssertionAttribute
    MaxAllocatedBytesAttribute
    Inherited Members
    AssertionAttribute.Type
    AssertionAttribute.GetTypes()
    AssertionAttribute.TypeName
    AssertionAttribute.GetTypeNames()
    AssertionAttribute.IncludeSubclasses
    System.Attribute.Equals(System.Object)
    System.Attribute.GetHashCode()
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: SciTech.NetMemProfiler
    Assembly: SciTech.MemProfilerApi.dll
    Syntax
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
    public sealed class MaxAllocatedBytesAttribute : AssertionAttribute
    Remarks

    This attribute can be applied to methods to define that no more than a specific number of bytes should be allocated by the target method.

    For more information see AssertionsDefinition.MaxAllocatedBytes and AssertionAttribute.

    Constructors

    Name Description
    MaxAllocatedBytesAttribute(String, Int64)
    MaxAllocatedBytesAttribute(String[], Int64)
    MaxAllocatedBytesAttribute(Type, Int64)

    Initializes a new instance of MaxAllocationsAttribute with the type of the instances that should be checked and the maximum number of allocated bytes allowed.

    MaxAllocatedBytesAttribute(Type[], Int64)

    Properties

    Name Description
    ByteCount

    Gets a value indicating the maximum number of bytes that should be allocated by the target method.

    In This Article
    Back to top

    © Copyright 2002-2020. SciTech Software AB.
    For information about .NET Memory Profiler, see the product site at https://memprofiler.com