Exemple #1
0
        public Run Execute(RunParameters p)
        {
            Run run = new Run();

            ProcessStartInfo info = new ProcessStartInfo(p.exePath);
            info.WorkingDirectory = p.workingDirectory;
            info.UseShellExecute = false;
            info.EnvironmentVariables["JAVA_TOOL_OPTIONS"] = "\"-agentpath:" + Application.StartupPath + "\\PJvmImpl.dll\"";
            info.EnvironmentVariables["ijwprof_txt"] = run.txtFile;
            info.EnvironmentVariables["ijwprof_bin"] = run.binFile;

            info.Arguments = p.parameters;

            Process.Start(info).WaitForExit();
            return run;
        }
Exemple #2
0
        public Run Execute(RunParameters p)
        {
            using (new ComServerRegistration(Application.StartupPath + "/pcomimpl.dll"))
            {
                Run run = new Run();

                ProcessStartInfo info = new ProcessStartInfo(p.exePath);
                info.WorkingDirectory = p.workingDirectory;
                info.UseShellExecute = false;
                info.EnvironmentVariables["Cor_Enable_Profiling"] = "1";
                info.EnvironmentVariables["COR_PROFILER"] = "{C1E9FE1F-F517-45c0-BB0E-EFAECC9401FC}";

                info.EnvironmentVariables["ijwprof_txt"] = run.txtFile;
                info.EnvironmentVariables["ijwprof_bin"] = run.binFile;

                info.Arguments = p.parameters;

                Process.Start(info).WaitForExit();
                return run;
            }
        }