Show / Hide Table of Contents

    Class MemoryAssertionAttribute

    Performs an assertion against memory counters collected over the course of a benchmark.

    Inheritance
    System.Object
    System.Attribute
    MeasurementAttribute
    MemoryMeasurementAttribute
    MemoryAssertionAttribute
    Inherited Members
    MemoryMeasurementAttribute.Metric
    System.Attribute.Equals(System.Object)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetHashCode()
    System.Attribute.IsDefaultAttribute()
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.Match(System.Object)
    System.Attribute.TypeId
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: NBench
    Assembly: NBench.dll
    Syntax
    [AttributeUsage(AttributeTargets.Method)]
    public class MemoryAssertionAttribute : MemoryMeasurementAttribute

    Constructors

    MemoryAssertionAttribute(MemoryMetric, MustBe, Double)

    Declaration
    public MemoryAssertionAttribute(MemoryMetric metric, MustBe condition, double averageBytes)
    Parameters
    Type Name Description
    MemoryMetric metric
    MustBe condition
    System.Double averageBytes

    Properties

    AverageBytes

    The value that will be compared against the collected metric for MemoryMetric.

    Declaration
    public double AverageBytes { get; }
    Property Value
    Type Description
    System.Double

    Condition

    The test we're going to perform against the collected value of MemoryMetric and AverageBytes.

    Declaration
    public MustBe Condition { get; }
    Property Value
    Type Description
    MustBe

    MaxAverageBytes

    Used only on Between comparisons. This is the upper bound of that comparison and AverageBytes is the lower bound.

    Declaration
    public double? MaxAverageBytes { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>
    Back to top Copyright © 2015-2020 Petabridge™, LLC