private static void Main(string[] args) { Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-us"); var processStartInfo = new ProcessStartInfo { FileName = @"..\..\..\Mandelbrot\Bin\Mandelbrot.exe" }; if (false) { var profilerAccess = new TracingProfilerAccess( processStartInfo, TimeSpan.FromMilliseconds(1000), OnUpdateCallback); profilerAccess.StartProfiler(); profilerAccess.Wait(); //ManualResetEvent Console.WriteLine("bye bye"); } else { var profilerAccess = new SamplingProfilerAccess( processStartInfo, TimeSpan.FromMilliseconds(1000), OnUpdateCallback2); profilerAccess.StartProfiler(); profilerAccess.Wait(); Console.WriteLine("bye bye"); } }
private static void Main(string[] args) { Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-us"); var processStartInfo = new ProcessStartInfo{ FileName = @"..\..\..\Mandelbrot\Bin\Mandelbrot.exe" }; if (false) { var profilerAccess = new TracingProfilerAccess( processStartInfo, TimeSpan.FromMilliseconds(1000), OnUpdateCallback); profilerAccess.StartProfiler(); profilerAccess.Wait(); //ManualResetEvent Console.WriteLine("bye bye"); } else { var profilerAccess = new SamplingProfilerAccess( processStartInfo, TimeSpan.FromMilliseconds(1000), OnUpdateCallback2); profilerAccess.StartProfiler(); profilerAccess.Wait(); Console.WriteLine("bye bye"); } }