Table of Contents

Class DisassemblyDiagnoserConfig

Namespace
BenchmarkDotNet.Diagnosers
Assembly
BenchmarkDotNet.dll
public class DisassemblyDiagnoserConfig
Inheritance
DisassemblyDiagnoserConfig

Constructors

DisassemblyDiagnoserConfig(int, DisassemblySyntax, string[]?, FormatterOptions?, bool, bool, bool, bool, bool, bool)

public DisassemblyDiagnoserConfig(int maxDepth = 1, DisassemblySyntax syntax = DisassemblySyntax.Masm, string[]? filters = null, FormatterOptions? formatterOptions = null, bool printSource = false, bool printInstructionAddresses = false, bool exportGithubMarkdown = true, bool exportHtml = false, bool exportCombinedDisassemblyReport = false, bool exportDiff = false)

Parameters

maxDepth int

Includes called methods to given level. 1 by default, indexed from 1. To print just the benchmark set it to 0.

syntax DisassemblySyntax

The disassembly syntax. MASM is the default.

filters string[]

Glob patterns applied to full method signatures by the the disassembler.

formatterOptions FormatterOptions

Code formatter options. If not provided, the recommended settings will be used.

printSource bool

C#|F#|VB source code will be printed. False by default.

printInstructionAddresses bool

Print instruction addresses. False by default

exportGithubMarkdown bool

Exports to GitHub markdown. True by default.

exportHtml bool

Exports to HTML with clickable links. False by default.

exportCombinedDisassemblyReport bool

Exports all benchmarks to a single HTML report. Makes it easy to compare different runtimes or methods (each becomes a column in HTML table).

exportDiff bool

Exports a diff of the assembly code to the Github markdown format. False by default.

Properties

ExportCombinedDisassemblyReport

public bool ExportCombinedDisassemblyReport { get; }

Property Value

bool

ExportDiff

public bool ExportDiff { get; }

Property Value

bool

ExportGithubMarkdown

public bool ExportGithubMarkdown { get; }

Property Value

bool

ExportHtml

public bool ExportHtml { get; }

Property Value

bool

Filters

public string[] Filters { get; }

Property Value

string[]

Formatting

public FormatterOptions Formatting { get; }

Property Value

FormatterOptions

MaxDepth

public int MaxDepth { get; }

Property Value

int

PrintInstructionAddresses

public bool PrintInstructionAddresses { get; }

Property Value

bool

PrintSource

public bool PrintSource { get; }

Property Value

bool

Syntax

public DisassemblySyntax Syntax { get; }

Property Value

DisassemblySyntax