static int MainCore() { if (cl.HasOption("?", "help")) { Usage(); return(0); } if (cl.HasOption(PFCOptions.Wrap)) { WrapperGenerator.Wrap(cl); return(0); } #if PERF int start = Environment.TickCount; #endif if (cl.HasOption("dot")) { DebugHooks.MethodName = cl.GetOption("", "dot"); } RunCore(); #if PERF CLI.Infrastructure.DumpPerfStat(); Infrastructure.DumpPerfStat(); Console.WriteLine((Environment.TickCount - start) + "ms"); #endif return(0); }
static bool RunSample() { cl = DebugInput.GetCommandLine(); if (cl == null) { return(false); } string dir = Path.GetDirectoryName(DebugInput.SamplePath); #if PERF int start = Environment.TickCount; #endif RunIn(dir); #if PERF CLI.Infrastructure.DumpPerfStat(); Infrastructure.DumpPerfStat(); Console.WriteLine((Environment.TickCount - start) + "ms"); #endif return(true); }