Show / Hide Table of Contents

Class Descriptor

Inheritance
Object
Descriptor
Namespace: BenchmarkDotNet.Running
Assembly: BenchmarkDotNet.dll
Syntax
public class Descriptor

Constructors

Descriptor(Type, MethodInfo, MethodInfo, MethodInfo, MethodInfo, MethodInfo, String, String, Boolean, String[], Int32, Int32)

Declaration
public Descriptor(Type type, MethodInfo workloadMethod, MethodInfo globalSetupMethod = null, MethodInfo globalCleanupMethod = null, MethodInfo iterationSetupMethod = null, MethodInfo iterationCleanupMethod = null, string description = null, string additionalLogic = null, bool baseline = false, string[] categories = null, int operationsPerInvoke = 1, int methodIndex = 0)
Parameters
Type Name Description
Type type
MethodInfo workloadMethod
MethodInfo globalSetupMethod
MethodInfo globalCleanupMethod
MethodInfo iterationSetupMethod
MethodInfo iterationCleanupMethod
String description
String additionalLogic
Boolean baseline
String[] categories
Int32 operationsPerInvoke
Int32 methodIndex

Properties

AdditionalLogic

Declaration
public string AdditionalLogic { get; }
Property Value
Type Description
String

Baseline

Declaration
public bool Baseline { get; }
Property Value
Type Description
Boolean

Categories

Declaration
public string[] Categories { get; }
Property Value
Type Description
String[]

DisplayInfo

Declaration
public string DisplayInfo { get; }
Property Value
Type Description
String

FolderInfo

Declaration
public string FolderInfo { get; }
Property Value
Type Description
String

GlobalCleanupMethod

Declaration
public MethodInfo GlobalCleanupMethod { get; }
Property Value
Type Description
MethodInfo

GlobalSetupMethod

Declaration
public MethodInfo GlobalSetupMethod { get; }
Property Value
Type Description
MethodInfo

IterationCleanupMethod

Declaration
public MethodInfo IterationCleanupMethod { get; }
Property Value
Type Description
MethodInfo

IterationSetupMethod

Declaration
public MethodInfo IterationSetupMethod { get; }
Property Value
Type Description
MethodInfo

MethodIndex

Declaration
public int MethodIndex { get; }
Property Value
Type Description
Int32

OperationsPerInvoke

Declaration
public int OperationsPerInvoke { get; }
Property Value
Type Description
Int32

Type

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

WorkloadMethod

Declaration
public MethodInfo WorkloadMethod { get; }
Property Value
Type Description
MethodInfo

WorkloadMethodDisplayInfo

Declaration
public string WorkloadMethodDisplayInfo { get; }
Property Value
Type Description
String

Methods

GetFilterName()

Declaration
public string GetFilterName()
Returns
Type Description
String

HasCategory(String)

Declaration
public bool HasCategory(string category)
Parameters
Type Name Description
String category
Returns
Type Description
Boolean

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()
In This Article
Back to top Copyright © 2013–2021 .NET Foundation and contributors