diff --git a/src/AddIns/Misc/Profiler/Frontend/BenchmarkRunner/BenchmarkRunner.cs b/src/AddIns/Misc/Profiler/Frontend/BenchmarkRunner/BenchmarkRunner.cs index e603dba091..09a7cd8f8e 100644 --- a/src/AddIns/Misc/Profiler/Frontend/BenchmarkRunner/BenchmarkRunner.cs +++ b/src/AddIns/Misc/Profiler/Frontend/BenchmarkRunner/BenchmarkRunner.cs @@ -5,7 +5,6 @@ // $Revision$ // -using ICSharpCode.Profiler.Controller.Data; using System; using System.Collections.Generic; using System.Diagnostics; @@ -13,7 +12,9 @@ using System.IO; using System.Linq; using System.Text.RegularExpressions; using System.Threading; + using ICSharpCode.Profiler.Controller; +using ICSharpCode.Profiler.Controller.Data; namespace BenchmarkRunner { @@ -47,18 +48,20 @@ namespace BenchmarkRunner } } - for (int i = 0; i < TestRunCount; i++) { - foreach (TestSeries ts in testSeries) { - ts.ExecuteRun(); + if (testSeries.Any()) { + for (int i = 0; i < TestRunCount; i++) { + foreach (TestSeries ts in testSeries) { + ts.ExecuteRun(); + } } + ResultSet[] results = testSeries.Select(ts=>ts.GetResult()).ToArray(); + + Console.WriteLine(); + Console.WriteLine(); + Console.WriteLine(); + + DisplayResults(results); } - ResultSet[] results = testSeries.Select(ts=>ts.GetResult()).ToArray(); - - Console.WriteLine(); - Console.WriteLine(); - Console.WriteLine(); - - DisplayResults(results); Console.Write("Press any key to continue . . . "); Console.ReadKey(true); @@ -85,7 +88,7 @@ namespace BenchmarkRunner File.Delete(fileName); using (var profiler = new Profiler( - startInfo, new ProfilingDataSQLiteWriter(fileName, false, null), new ProfilerOptions() + startInfo, new ProfilingDataSQLiteWriter(fileName), new ProfilerOptions() )) { using (ManualResetEvent mre = new ManualResetEvent(false)) { profiler.SessionEnded += delegate { diff --git a/src/AddIns/Misc/Profiler/Frontend/BenchmarkRunner/BenchmarkRunner.csproj b/src/AddIns/Misc/Profiler/Frontend/BenchmarkRunner/BenchmarkRunner.csproj index 1e53143e48..da61ed2c0a 100644 --- a/src/AddIns/Misc/Profiler/Frontend/BenchmarkRunner/BenchmarkRunner.csproj +++ b/src/AddIns/Misc/Profiler/Frontend/BenchmarkRunner/BenchmarkRunner.csproj @@ -1,4 +1,5 @@ - + + {DBEF953E-F7BC-4D54-8A27-B758EC875C49} Debug @@ -6,7 +7,7 @@ Exe BenchmarkRunner BenchmarkRunner - v3.5 + v4.0 Properties C:\Users\daniel\AppData\Roaming\ICSharpCode/SharpDevelop3.0\Settings.SourceAnalysis ..\..\bin\ @@ -33,9 +34,12 @@ false false true + False + False + OnBuildSuccess - True + true Full False True @@ -50,6 +54,13 @@ TRACE AllRules.ruleset + + True + Auto + 4194304 + x86 + 4096 + @@ -69,13 +80,6 @@ - - - {72FFB35A-C9E2-4A31-B4FA-E3E3E28DED5F} - Profiler.Controller - False - - False @@ -88,4 +92,13 @@ true + + + {72FFB35A-C9E2-4A31-B4FA-E3E3E28DED5F} + Profiler.Controller + + + + + \ No newline at end of file diff --git a/src/AddIns/Misc/Profiler/Frontend/BenchmarkRunner/app.config b/src/AddIns/Misc/Profiler/Frontend/BenchmarkRunner/app.config new file mode 100644 index 0000000000..d8aeb3410e --- /dev/null +++ b/src/AddIns/Misc/Profiler/Frontend/BenchmarkRunner/app.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file