76
76
Counters.Initialization.BeginTiming ();
78
if (options.LogCounters) {
79
string logFile = Path.Combine (Environment.CurrentDirectory, "monodevelop.clog");
78
if (options.PerfLog) {
79
string logFile = Path.Combine (Environment.CurrentDirectory, "monodevelop.perf-log");
80
80
LoggingService.LogInfo ("Logging instrumentation service data to file: " + logFile);
81
81
InstrumentationService.StartAutoSave (logFile, 1000);
135
135
//don't show the splash screen on the Mac, so instead we get the expected "Dock bounce" effect
136
136
//this also enables the Mac platform service to subscribe to open document events before the GUI loop starts.
137
137
if (Platform.IsMac)
138
options.NoLogo = true;
138
options.NoSplash = true;
140
140
IProgressMonitor monitor;
142
if (options.NoLogo) {
142
if (options.NoSplash) {
143
143
monitor = new MonoDevelop.Core.ProgressMonitoring.ConsoleProgressMonitor ();
145
145
monitor = SplashScreenForm.SplashScreen;
527
529
MonoDevelopOptions ()
529
531
IpcTcp = (PlatformID.Unix != Environment.OSVersion.Platform);
532
RedirectOutput = true;
532
535
Mono.Options.OptionSet GetOptionSet ()
534
537
return new Mono.Options.OptionSet () {
535
{ "nologo", "Do not display splash screen.", s => NoLogo = true },
538
{ "no-splash", "Do not display splash screen.", s => NoSplash = true },
536
539
{ "ipc-tcp", "Use the Tcp channel for inter-process comunication.", s => IpcTcp = true },
537
{ "newwindow", "Do not open in an existing instance of " + BrandingService.ApplicationName, s => NewWindow = true },
540
{ "new-window", "Do not open in an existing instance of " + BrandingService.ApplicationName, s => NewWindow = true },
538
541
{ "h|?|help", "Show help", s => ShowHelp = true },
539
{ "clog", "Log internal counter data", s => LogCounters = true },
540
{ "clog-interval=", "Interval between counter logs (in milliseconds)", (int i) => LogCountersInterval = i },
541
{ "redirect-output", "Whether to redirect stdout/stderr to a log file", s => RedirectOutput = true },
542
{ "perf-log", "Enable performance counter logging", s => PerfLog = true },
543
{ "no-redirect", "Disable redirection of stdout/stderr to a log file", s => RedirectOutput = false },
570
public bool NoLogo { get; set; }
572
public bool NoSplash { get; set; }
571
573
public bool IpcTcp { get; set; }
572
574
public bool NewWindow { get; set; }
573
575
public bool ShowHelp { get; set; }
574
public bool LogCounters { get; set; }
575
public int LogCountersInterval { get; set; }
576
public bool PerfLog { get; set; }
576
577
public bool RedirectOutput { get; set; }
577
578
public string Error { get; set; }
578
579
public IList<string> RemainingArgs { get; set; }