Class DisassemblyDiagnoserConfig
Namespace: BenchmarkDotNet.Diagnosers
Assembly: BenchmarkDotNet.dll
Syntax
public class DisassemblyDiagnoserConfig
Constructors
DisassemblyDiagnoserConfig(Int32, Formatter, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
Declaration
public DisassemblyDiagnoserConfig(int maxDepth = 1, Formatter formatter = null, bool printSource = false, bool printInstructionAddresses = false, bool exportGithubMarkdown = true, bool exportHtml = false, bool exportCombinedDisassemblyReport = false, bool exportDiff = false)
Parameters
Type | Name | Description |
---|---|---|
Int32 | maxDepth | Includes called methods to given level. 1 by default, indexed from 1. To print just the benchmark set it to 0. |
Formatter | formatter | Assembly code formatter. If not provided, MasmFormatter with the recommended settings will be used. |
Boolean | printSource | C#|F#|VB source code will be printed. False by default. |
Boolean | printInstructionAddresses | Print instruction addresses. False by default |
Boolean | exportGithubMarkdown | Exports to GitHub markdown. True by default. |
Boolean | exportHtml | Exports to HTML with clickable links. False by default. |
Boolean | exportCombinedDisassemblyReport | Exports all benchmarks to a single HTML report. Makes it easy to compare different runtimes or methods (each becomes a column in HTML table). |
Boolean | exportDiff | Exports a diff of the assembly code to the Github markdown format. False by default. |
Properties
ExportCombinedDisassemblyReport
Declaration
public bool ExportCombinedDisassemblyReport { get; }
Property Value
Type | Description |
---|---|
Boolean |
ExportDiff
Declaration
public bool ExportDiff { get; }
Property Value
Type | Description |
---|---|
Boolean |
ExportGithubMarkdown
Declaration
public bool ExportGithubMarkdown { get; }
Property Value
Type | Description |
---|---|
Boolean |
ExportHtml
Declaration
public bool ExportHtml { get; }
Property Value
Type | Description |
---|---|
Boolean |
MaxDepth
Declaration
public int MaxDepth { get; }
Property Value
Type | Description |
---|---|
Int32 |
PrintInstructionAddresses
Declaration
public bool PrintInstructionAddresses { get; }
Property Value
Type | Description |
---|---|
Boolean |
PrintSource
Declaration
public bool PrintSource { get; }
Property Value
Type | Description |
---|---|
Boolean |