Skip to content
Permalink
Browse files

CombinedDisassemblyExporter output should be aligned to left, not right

  • Loading branch information
adamsitnik committed Oct 4, 2019
1 parent 4ec8884 commit 51f53a1ad5ca715378cb43f137369db733b3af74
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/BenchmarkDotNet/Exporters/CombinedDisassemblyExporter.cs
@@ -10,6 +10,14 @@ namespace BenchmarkDotNet.Exporters
{
public class CombinedDisassemblyExporter : ExporterBase
{
internal const string CssDefinition = @"
<style type=""text/css"">
table { border-collapse: collapse; display: block; width: 100%; overflow: auto; }
td, th { padding: 6px 13px; border: 1px solid #ddd; text-align: left; }
tr { background-color: #fff; border-top: 1px solid #ccc; }
tr:nth-child(even) { background: #f8f8f8; }
</style>";

private readonly IReadOnlyDictionary<BenchmarkCase, DisassemblyResult> results;

public CombinedDisassemblyExporter(IReadOnlyDictionary<BenchmarkCase, DisassemblyResult> results)
@@ -32,7 +40,7 @@ public override void ExportToLog(Summary summary, ILogger logger)
logger.WriteLine("<head>");
logger.WriteLine("<meta charset='utf-8' />");
logger.WriteLine($"<title>DisassemblyDiagnoser Output {summary.Title}</title>");
logger.WriteLine(HtmlExporter.CssDefinition);
logger.WriteLine(CssDefinition);
logger.WriteLine("</head>");

logger.WriteLine("<body>");

0 comments on commit 51f53a1

Please sign in to comment.
You can’t perform that action at this time.