File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/BenchmarkDotNet/Running
tests/BenchmarkDotNet.IntegrationTests Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public class BuildPartition
21
21
{
22
22
// We use an auto-increment global counter instead of Guid to guarantee uniqueness per benchmark run (Guid has a small chance to collide),
23
23
// assuming there are fewer than 4 billion build partitions (a safe assumption).
24
- private static int s_partitionCounter ;
24
+ internal static int s_partitionCounter ;
25
25
26
26
public BuildPartition ( BenchmarkBuildInfo [ ] benchmarks , IResolver resolver )
27
27
{
Original file line number Diff line number Diff line change 10
10
using BenchmarkDotNet . Jobs ;
11
11
using BenchmarkDotNet . Loggers ;
12
12
using BenchmarkDotNet . Reports ;
13
+ using BenchmarkDotNet . Running ;
13
14
using BenchmarkDotNet . Tests . Loggers ;
14
15
using BenchmarkDotNet . Tests . XUnit ;
15
16
using BenchmarkDotNet . Toolchains . InProcess . Emit ;
@@ -68,10 +69,11 @@ private void DiffEmit(Summary summary)
68
69
if ( ! Portability . RuntimeInformation . IsFullFramework )
69
70
return ;
70
71
71
- var caseName = summary . BenchmarksCases . First ( ) . Job . ToString ( ) ;
72
+ var benchmarkCase = summary . BenchmarksCases . First ( ) ;
73
+ var caseName = $ "{ benchmarkCase . Descriptor . Type . Assembly . GetName ( ) . Name } -{ benchmarkCase . Job . FolderInfo } ";
72
74
NaiveRunnableEmitDiff . RunDiff (
73
- $@ "{ caseName } .exe",
74
- $@ "{ caseName } Emitted.dll",
75
+ $@ "{ caseName } - { BuildPartition . s_partitionCounter } .exe",
76
+ $@ "{ caseName } - { BuildPartition . s_partitionCounter - 1 } Emitted.dll",
75
77
ConsoleLogger . Default ) ;
76
78
}
77
79
You can’t perform that action at this time.
0 commit comments