Show / Hide Table of Contents

    Class CounterTotalAssertionAttribute

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

    This asserts the TOTAL AVERAGE NUMBER OF OPERATIONS values averaged over all runs of a benchmark.

    Inheritance
    System.Object
    System.Attribute
    MeasurementAttribute
    CounterMeasurementAttribute
    CounterTotalAssertionAttribute
    Inherited Members
    CounterMeasurementAttribute.CounterName
    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, AllowMultiple = true)]
    public class CounterTotalAssertionAttribute : CounterMeasurementAttribute

    Constructors

    CounterTotalAssertionAttribute(String, MustBe, Double)

    Declaration
    public CounterTotalAssertionAttribute(string counterName, MustBe condition, double averageOperationsTotal)
    Parameters
    Type Name Description
    System.String counterName
    MustBe condition
    System.Double averageOperationsTotal

    Properties

    AverageOperationsTotal

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

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

    Condition

    The test we're going to perform against the collected value of CounterName and AverageOperationsTotal.

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

    MaxAverageOperationsTotal

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

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