Table of Contents

Class MetricColumn

Namespace
BenchmarkDotNet.Columns
Assembly
BenchmarkDotNet.dll
public class MetricColumn : IColumn
Inheritance
MetricColumn
Implements
Extension Methods

Constructors

MetricColumn(IMetricDescriptor)

public MetricColumn(IMetricDescriptor metricDescriptor)

Parameters

metricDescriptor IMetricDescriptor

Properties

AlwaysShow

public bool AlwaysShow { get; }

Property Value

bool

Category

public ColumnCategory Category { get; }

Property Value

ColumnCategory

ColumnName

Display column title in the summary.

public string ColumnName { get; }

Property Value

string

Id

An unique identifier of the column. If there are several columns with the same Id, only one of them will be shown in the summary.

public string Id { get; }

Property Value

string

IsNumeric

Defines if the column's value represents a number

public bool IsNumeric { get; }

Property Value

bool

Legend

Column description.

public string Legend { get; }

Property Value

string

PriorityInCategory

Defines order of column in the same category.

public int PriorityInCategory { get; }

Property Value

int

UnitType

Defines how to format column's value

public UnitType UnitType { get; }

Property Value

UnitType

Methods

GetValue(Summary, BenchmarkCase)

Value in this column formatted using the default style.

public string GetValue(Summary summary, BenchmarkCase benchmarkCase)

Parameters

summary Summary
benchmarkCase BenchmarkCase

Returns

string

GetValue(Summary, BenchmarkCase, SummaryStyle)

Value in this column formatted using the specified style.

public string GetValue(Summary summary, BenchmarkCase benchmarkCase, SummaryStyle style)

Parameters

summary Summary
benchmarkCase BenchmarkCase
style SummaryStyle

Returns

string

IsAvailable(Summary)

public bool IsAvailable(Summary summary)

Parameters

summary Summary

Returns

bool

IsDefault(Summary, BenchmarkCase)

public bool IsDefault(Summary summary, BenchmarkCase benchmarkCase)

Parameters

summary Summary
benchmarkCase BenchmarkCase

Returns

bool

ToString()

public override string ToString()

Returns

string