浏览代码

Add benchmark category to the TextFormatter benchmarks

Tonttu 4 月之前
父节点
当前提交
aeffe3e36e
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      Benchmarks/Text/TextFormatter/ReplaceCRLFWithSpace.cs
  2. 1 0
      Benchmarks/Text/TextFormatter/StripCRLF.cs

+ 1 - 0
Benchmarks/Text/TextFormatter/ReplaceCRLFWithSpace.cs

@@ -8,6 +8,7 @@ namespace Terminal.Gui.Benchmarks.Text.TextFormatter;
 /// Benchmarks for <see cref="Tui.TextFormatter.ReplaceCRLFWithSpace"/> performance fine-tuning.
 /// </summary>
 [MemoryDiagnoser]
+[BenchmarkCategory (nameof (Tui.TextFormatter))]
 public class ReplaceCRLFWithSpace
 {
 

+ 1 - 0
Benchmarks/Text/TextFormatter/StripCRLF.cs

@@ -8,6 +8,7 @@ namespace Terminal.Gui.Benchmarks.Text.TextFormatter;
 /// Benchmarks for <see cref="Tui.TextFormatter.StripCRLF"/> performance fine-tuning.
 /// </summary>
 [MemoryDiagnoser]
+[BenchmarkCategory (nameof (Tui.TextFormatter))]
 public class StripCRLF
 {
     /// <summary>