/// <summary> /// Performs the data collection and the subsequent analysis. /// </summary> static void Collect(string processName) { var pcm = HarvestProcess.FromBinary("pcm-win", "pcm.exe", Resources.pcm_win); var os = HarvestProcess.FromBinary("os-win", "PerfMonitor.exe", Resources.os_win); pcm.Run("1"); os.Run(" -KernelEvents:ContextSwitch start"); Console.WriteLine("Press any key to stop data collection..."); Console.ReadKey(); pcm.Stop(); os.Run("stop"); Console.WriteLine("Waiting for data collection to stop..."); os.WaitForExit(); pcm.WaitForExit(); // Analyze var experiment = new HarvestExperimentWin(); Console.WriteLine("Copying and merging to the experiment folder..."); experiment.Merge(processName, pcm, os); }
/// <summary> /// Performs the data collection and the subsequent analysis. /// </summary> static void Collect(string processName) { var pcm = HarvestProcess.FromBinary("pcm-win", "pcm.exe", Resources.pcm_win); var os = HarvestProcess.FromBinary("os-win", "PerfMonitor.exe", Resources.os_win); pcm.Run("5"); os.Run(" -KernelEvents:ContextSwitch,MemoryPageFaults /providers:FE2625C1-C10D-452C-B813-A8703EA9D2BA start"); Console.WriteLine("Press any key to stop data collection..."); Console.ReadKey(); pcm.Stop(); os.Run("stop"); Console.WriteLine("Waiting for data collection to stop..."); os.WaitForExit(); pcm.WaitForExit(); // Analyze var experiment = new HarvestExperimentWin(); Console.WriteLine("Copying and merging to the experiment folder..."); experiment.Merge(processName, processName, pcm, os); }
/// <summary> /// Analyzes the data. /// </summary> /// <param name="processName">The process to analyze.</param> /// <param name="folder">The folder containing the data</param> static void Analyze(string processName, string folder) { var experiment = new HarvestExperimentWin(folder); experiment.Merge(processName, null, null); }
/// <summary> /// Analyzes the data. /// </summary> /// <param name="processName">The process to analyze.</param> /// <param name="folder">The folder containing the data</param> static void Analyze(string processName, string name, string folder) { var experiment = new HarvestExperimentWin(folder); experiment.Merge(processName, name, null, null); }