Exemple #1
0
		protected override void Run ()
		{
			SelectExecutableDialog dlg = new SelectExecutableDialog ();
			if (dlg.Run () == (int)ResponseType.Ok) {
				IProfiler profiler = dlg.Profiler;
				string executable = dlg.Executable;
				string arguments = dlg.Arguments;
				string workingDir = Path.GetDirectoryName (executable);

				ProfilingOperations.ProfileApplication (profiler, executable, workingDir, arguments);
			}
			dlg.Destroy ();
		}
Exemple #2
0
        protected override void Run()
        {
            SelectExecutableDialog dlg = new SelectExecutableDialog();

            if (dlg.Run() == (int)ResponseType.Ok)
            {
                IProfiler profiler   = dlg.Profiler;
                string    executable = dlg.Executable;
                string    arguments  = dlg.Arguments;
                string    workingDir = Path.GetDirectoryName(executable);

                ProfilingOperations.ProfileApplication(profiler, executable, workingDir, arguments);
            }
            dlg.Destroy();
        }