public static IAsyncOperation ProfileFile (IProfiler profiler, string fileName) { if (IdeApp.ProjectOperations.CurrentRunOperation != null && !IdeApp.ProjectOperations.CurrentRunOperation.IsCompleted) return IdeApp.ProjectOperations.CurrentRunOperation; SwitchWorkbenchContext (ProfileWorkbenchContext); ExecutionContext context = new ExecutionContext (profiler.GetDefaultExecutionHandlerFactory (), IdeApp.Workbench.ProgressMonitors); return IdeApp.ProjectOperations.ExecuteFile (fileName, context); }
public static IAsyncOperation ProfileApplication (IProfiler profiler, string executable, string workingDirectory, string args) { if (IdeApp.ProjectOperations.CurrentRunOperation != null && !IdeApp.ProjectOperations.CurrentRunOperation.IsCompleted) return IdeApp.ProjectOperations.CurrentRunOperation; SwitchWorkbenchContext (ProfileWorkbenchContext); ExecutionContext context = new ExecutionContext (profiler.GetDefaultExecutionHandlerFactory (), IdeApp.Workbench.ProgressMonitors); //TODO: return NullAsyncOperation.Failure; }
public static IAsyncOperation ProfileFile(IProfiler profiler, string fileName) { if (IdeApp.ProjectOperations.CurrentRunOperation != null && !IdeApp.ProjectOperations.CurrentRunOperation.IsCompleted) { return(IdeApp.ProjectOperations.CurrentRunOperation); } SwitchWorkbenchContext(ProfileWorkbenchContext); ExecutionContext context = new ExecutionContext(profiler.GetDefaultExecutionHandlerFactory(), IdeApp.Workbench.ProgressMonitors); return(IdeApp.ProjectOperations.ExecuteFile(fileName, context)); }
public static IAsyncOperation ProfileApplication(IProfiler profiler, string executable, string workingDirectory, string args) { if (IdeApp.ProjectOperations.CurrentRunOperation != null && !IdeApp.ProjectOperations.CurrentRunOperation.IsCompleted) { return(IdeApp.ProjectOperations.CurrentRunOperation); } SwitchWorkbenchContext(ProfileWorkbenchContext); ExecutionContext context = new ExecutionContext(profiler.GetDefaultExecutionHandlerFactory(), IdeApp.Workbench.ProgressMonitors); //TODO: return(NullAsyncOperation.Failure); }