public Compiler(EnvDTE.Project proj, string file, IVsOutputWindowPane pane) { taskTimer = new TaskTimer("Compile " + file); project = proj; clTool = new VCCompilerHelper(project); filename = file; buildPane = pane; }
public BuildProfiler(EnvDTE.Project proj, int stackMaxSize, IVsOutputWindowPane bpane, IVsOutputWindowPane ppane, Action onFinished, string singleFile = null) { if (singleFile != null) onlyFile = singleFile; project = proj; clTool = new VCCompilerHelper(project); profilePane = ppane; buildPane = bpane; profiler = new ActiveObject(stackMaxSize); signalFinished = onFinished; Initialize(); profiler.Signal(); }
public TemplateProfiler(EnvDTE.Project proj, string file, int stackMaxSize, IVsOutputWindowPane pane, Action onFinished) { project = proj; clTool = new VCCompilerHelper(project); filename = file; profilePane = pane; try { profiler = new ActiveObject(stackMaxSize); } catch (System.OutOfMemoryException /*ex*/) { string message = "The Tools->Meta->Options page specifies a " + stackMaxSize + " byte stack reserve size. This exceeds available memory." + Environment.NewLine + "Please try again with a lower stack size reserve value."; string caption = "Stack Reserve Size Too Large..."; MessageBox.Show(message, caption, MessageBoxButtons.OK, MessageBoxIcon.Error); cancelProfile = true; return; } signalFinished = onFinished; Initialize(); profiler.Signal(); }