You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compositeLogger.WriteLineInfo($"Skipping {benchmarkRunInfo.BenchmarksCases.Length} benchmark(s) defined by {benchmarkRunInfo.Type.GetCorrectCSharpTypeName()}.");
140
+
compositeLogger.WriteLineInfo($"Skipping {benchmarkRunInfo.BenchmarksCases.Length} benchmark(s) defined by {benchmarkRunInfo.Type.GetCorrectCSharpTypeName(prefixWithGlobal:false)}.");
public class UniqueProgramName // we need different name than typical "Program" to avoid problems with referencing "Program" types from benchmarked code, #691
12
12
{
13
13
$ExtraAttribute$
14
-
public static System.Int32 Main(System.String[] args)
14
+
public static global::System.Int32 Main(global::System.String[] args)
15
15
{
16
16
// this method MUST NOT have any dependencies to BenchmarkDotNet and any other external dlls! (CoreRT is exception from this rule)
17
17
// otherwise if LINQPad's shadow copy is enabled, we will not register for AssemblyLoading event
BenchmarkDotNet.Engines.IHost host; // this variable name is used by CodeGenerator.GetCoreRtSwitch, do NOT change it
28
-
if (BenchmarkDotNet.Engines.AnonymousPipesHost.TryGetFileHandles(args, out System.String writeHandle, out System.String readHandle))
29
-
host = new BenchmarkDotNet.Engines.AnonymousPipesHost(writeHandle, readHandle);
27
+
global::BenchmarkDotNet.Engines.IHost host; // this variable name is used by CodeGenerator.GetCoreRtSwitch, do NOT change it
28
+
if (global::BenchmarkDotNet.Engines.AnonymousPipesHost.TryGetFileHandles(args, out global::System.String writeHandle, out global::System.String readHandle))
29
+
host = new global::BenchmarkDotNet.Engines.AnonymousPipesHost(writeHandle, readHandle);
30
30
else
31
-
host = new BenchmarkDotNet.Engines.NoAcknowledgementConsoleHost();
31
+
host = new global::BenchmarkDotNet.Engines.NoAcknowledgementConsoleHost();
32
32
33
33
// the first thing to do is to let diagnosers hook in before anything happens
34
34
// so all jit-related diagnosers can catch first jit compilation!
global::System.Type type = typeof(global::BenchmarkDotNet.Autogenerated.UniqueProgramName).Assembly.GetType($"BenchmarkDotNet.Autogenerated.Runnable_{id}");
catch (System.Exception oom) when (oom is System.OutOfMemoryException || oom is System.Reflection.TargetInvocationException reflection && reflection.InnerException is System.OutOfMemoryException)
62
+
catch (global::System.Exception oom) when (oom is global::System.OutOfMemoryException || oom is global::System.Reflection.TargetInvocationException reflection && reflection.InnerException is global::System.OutOfMemoryException)
0 commit comments