Table of Contents

Class JsonExporterBase

Namespace
BenchmarkDotNet.Exporters.Json
Assembly
BenchmarkDotNet.dll
public abstract class JsonExporterBase : ExporterBase, IExporter
Inheritance
JsonExporterBase
Implements
Derived
Inherited Members

Constructors

JsonExporterBase(bool, bool)

protected JsonExporterBase(bool indentJson = false, bool excludeMeasurements = false)

Parameters

indentJson bool
excludeMeasurements bool

Properties

FileExtension

protected override string FileExtension { get; }

Property Value

string

Methods

ExportToLog(Summary, ILogger)

public override void ExportToLog(Summary summary, ILogger logger)

Parameters

summary Summary
logger ILogger

GetDataToSerialize(HostEnvironmentInfo)

protected virtual IReadOnlyDictionary<string, object> GetDataToSerialize(HostEnvironmentInfo environmentInfo)

Parameters

environmentInfo HostEnvironmentInfo

Returns

IReadOnlyDictionary<string, object>

GetDataToSerialize(BenchmarkReport)

protected virtual IReadOnlyDictionary<string, object> GetDataToSerialize(BenchmarkReport report)

Parameters

report BenchmarkReport

Returns

IReadOnlyDictionary<string, object>

GetDataToSerialize(Summary)

protected virtual IReadOnlyDictionary<string, object> GetDataToSerialize(Summary summary)

Parameters

summary Summary

Returns

IReadOnlyDictionary<string, object>