Exemplo n.º 1
0
        public static void Main()
        {
            if (false)
            {
                var walker = new BenchmarkWalker(Code.AnalyzersProject, new IDISP001DisposeCreated());

                // Warmup
                walker.Run();
                Console.WriteLine("Attach profiler and press any key to continue...");
                Console.ReadKey();
                walker.Run();
            }
            else if (true)
            {
                foreach (var summary in RunSingle <IDISP001DisposeCreatedBenchmarks>())
                {
                    CopyResult(summary.Title);
                }
            }
            else
            {
                foreach (var summary in RunAll())
                {
                    CopyResult(summary.Title);
                }
            }
        }
 public void Run(BenchmarkWalker walker)
 {
     walker.Run();
 }