File tree 4 files changed +8
-24
lines changed
BenchmarkDotNet.Diagnostics.dotMemory
BenchmarkDotNet.Diagnostics.dotTrace
4 files changed +8
-24
lines changed Original file line number Diff line number Diff line change 16
16
17
17
namespace BenchmarkDotNet . Diagnostics . dotMemory
18
18
{
19
- public class DotMemoryDiagnoser : IProfiler
19
+ public class DotMemoryDiagnoser ( Uri ? nugetUrl = null , string ? toolsDownloadFolder = null ) : IProfiler
20
20
{
21
- private readonly Uri ? nugetUrl ;
22
- private readonly string ? toolsDownloadFolder ;
23
-
24
21
private DotMemoryTool ? tool ;
25
22
26
- public DotMemoryDiagnoser ( Uri ? nugetUrl = null , string ? toolsDownloadFolder = null )
27
- {
28
- this . nugetUrl = nugetUrl ;
29
- this . toolsDownloadFolder = toolsDownloadFolder ;
30
- }
31
-
32
23
public IEnumerable < string > Ids => new [ ] { "DotMemory" } ;
33
24
public string ShortName => "dotMemory" ;
34
25
Original file line number Diff line number Diff line change @@ -13,9 +13,10 @@ public DotMemoryDiagnoserAttribute()
13
13
Config = ManualConfig . CreateEmpty ( ) . AddDiagnoser ( new DotMemoryDiagnoser ( ) ) ;
14
14
}
15
15
16
- public DotMemoryDiagnoserAttribute ( Uri ? nugetUrl = null , string ? toolsDownloadFolder = null )
16
+ public DotMemoryDiagnoserAttribute ( string ? nugetUrl = null , string ? toolsDownloadFolder = null )
17
17
{
18
- Config = ManualConfig . CreateEmpty ( ) . AddDiagnoser ( new DotMemoryDiagnoser ( nugetUrl , toolsDownloadFolder ) ) ;
18
+ var nugetUri = nugetUrl == null ? null : new Uri ( nugetUrl ) ;
19
+ Config = ManualConfig . CreateEmpty ( ) . AddDiagnoser ( new DotMemoryDiagnoser ( nugetUri , toolsDownloadFolder ) ) ;
19
20
}
20
21
}
21
22
}
Original file line number Diff line number Diff line change 17
17
18
18
namespace BenchmarkDotNet . Diagnostics . dotTrace
19
19
{
20
- public class DotTraceDiagnoser : IProfiler
20
+ public class DotTraceDiagnoser ( Uri ? nugetUrl = null , string ? toolsDownloadFolder = null ) : IProfiler
21
21
{
22
- private readonly Uri ? nugetUrl ;
23
- private readonly string ? toolsDownloadFolder ;
24
-
25
- public DotTraceDiagnoser ( Uri ? nugetUrl = null , string ? toolsDownloadFolder = null )
26
- {
27
- this . nugetUrl = nugetUrl ;
28
- this . toolsDownloadFolder = toolsDownloadFolder ;
29
- }
30
-
31
22
public IEnumerable < string > Ids => new [ ] { "DotTrace" } ;
32
23
public string ShortName => "dotTrace" ;
33
24
Original file line number Diff line number Diff line change @@ -13,9 +13,10 @@ public DotTraceDiagnoserAttribute()
13
13
Config = ManualConfig . CreateEmpty ( ) . AddDiagnoser ( new DotTraceDiagnoser ( ) ) ;
14
14
}
15
15
16
- public DotTraceDiagnoserAttribute ( Uri ? nugetUrl = null , string ? toolsDownloadFolder = null )
16
+ public DotTraceDiagnoserAttribute ( string ? nugetUrl = null , string ? toolsDownloadFolder = null )
17
17
{
18
- Config = ManualConfig . CreateEmpty ( ) . AddDiagnoser ( new DotTraceDiagnoser ( nugetUrl , toolsDownloadFolder ) ) ;
18
+ var nugetUri = nugetUrl == null ? null : new Uri ( nugetUrl ) ;
19
+ Config = ManualConfig . CreateEmpty ( ) . AddDiagnoser ( new DotTraceDiagnoser ( nugetUri , toolsDownloadFolder ) ) ;
19
20
}
20
21
}
21
22
}
You can’t perform that action at this time.
0 commit comments