Skip to content

Commit 9927193

Browse files
fix issue #1561 (#1600)
1 parent 0de41c2 commit 9927193

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/BenchmarkDotNet.Diagnostics.Windows/Tracing/NativeMemoryLogParser.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class NativeMemoryLogParser
2929

3030
private readonly string moduleName;
3131

32-
private readonly string functionName;
32+
private readonly string[] functionNames;
3333

3434
public NativeMemoryLogParser(string etlFilePath, BenchmarkCase benchmarkCase, ILogger logger,
3535
string programName)
@@ -39,7 +39,11 @@ public NativeMemoryLogParser(string etlFilePath, BenchmarkCase benchmarkCase, IL
3939
this.logger = logger;
4040

4141
moduleName = programName;
42-
functionName = nameof(EngineParameters.WorkloadActionUnroll);
42+
functionNames = new[]
43+
{
44+
nameof(EngineParameters.WorkloadActionUnroll),
45+
nameof(EngineParameters.WorkloadActionNoUnroll)
46+
};
4347
}
4448

4549
public IEnumerable<Metric> Parse()
@@ -136,7 +140,7 @@ bool IsCallStackIn(StackSourceCallStackIndex index)
136140
var name = stackSource.GetFrameName(frame, false);
137141

138142
if (name.StartsWith(moduleName, StringComparison.Ordinal) &&
139-
name.IndexOf(functionName, StringComparison.Ordinal) > 0)
143+
functionNames.Any(functionName => name.IndexOf(functionName, StringComparison.Ordinal) > 0))
140144
{
141145
return true;
142146
}

0 commit comments

Comments
 (0)