Class DisassemblyDiagnoserAttribute
- Namespace
- BenchmarkDotNet.Attributes
- Assembly
- BenchmarkDotNet.dll
[AttributeUsage(AttributeTargets.Class)]
public class DisassemblyDiagnoserAttribute : Attribute, IConfigSource
- Inheritance
-
DisassemblyDiagnoserAttribute
- Implements
- Inherited Members
Constructors
DisassemblyDiagnoserAttribute()
protected DisassemblyDiagnoserAttribute()
DisassemblyDiagnoserAttribute(int, DisassemblySyntax, bool, bool, bool, bool, bool, bool, params string[])
public DisassemblyDiagnoserAttribute(int maxDepth = 1, DisassemblySyntax syntax = DisassemblySyntax.Masm, bool printSource = false, bool printInstructionAddresses = false, bool exportGithubMarkdown = true, bool exportHtml = false, bool exportCombinedDisassemblyReport = false, bool exportDiff = false, params string[] filters)
Parameters
maxDepthintIncludes called methods to given level. 1 by default, indexed from 1. To print just the benchmark set it to 0.
syntaxDisassemblySyntaxThe disassembly syntax. MASM is the default.
printSourceboolC#|F#|VB source code will be printed. False by default.
printInstructionAddressesboolPrint instruction addresses. False by default
exportGithubMarkdownboolExports to GitHub markdown. True by default.
exportHtmlboolExports to HTML with clickable links. False by default.
exportCombinedDisassemblyReportboolExports all benchmarks to a single HTML report. Makes it easy to compare different runtimes or methods (each becomes a column in HTML table).
exportDiffboolExports a diff of the assembly code to the Github markdown format. False by default.
filtersstring[]Glob patterns applied to full method signatures by the the disassembler.
Properties
Config
public IConfig Config { get; }