|
|
|
@ -532,6 +532,7 @@ namespace ICSharpCode.UnitTesting |
|
|
|
|
|
|
|
|
|
|
|
startInfo.Arguments = helper.GetArguments(); |
|
|
|
startInfo.Arguments = helper.GetArguments(); |
|
|
|
startInfo.WorkingDirectory = UnitTestApplicationStartHelper.UnitTestApplicationDirectory; |
|
|
|
startInfo.WorkingDirectory = UnitTestApplicationStartHelper.UnitTestApplicationDirectory; |
|
|
|
|
|
|
|
LoggingService.Info("starting profiler..."); |
|
|
|
ProfilerService.CurrentProfiler.Start(startInfo, path, delegate { AfterFinish(helper, path); }); |
|
|
|
ProfilerService.CurrentProfiler.Start(startInfo, path, delegate { AfterFinish(helper, path); }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -539,6 +540,7 @@ namespace ICSharpCode.UnitTesting |
|
|
|
{ |
|
|
|
{ |
|
|
|
ProfilerService.AddSessionToProject(helper.Project, path); |
|
|
|
ProfilerService.AddSessionToProject(helper.Project, path); |
|
|
|
WorkbenchSingleton.SafeThreadAsyncCall(TestsFinished); |
|
|
|
WorkbenchSingleton.SafeThreadAsyncCall(TestsFinished); |
|
|
|
|
|
|
|
LoggingService.Info("shutting profiler down..."); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override void Run() |
|
|
|
public override void Run() |
|
|
|
@ -554,6 +556,7 @@ namespace ICSharpCode.UnitTesting |
|
|
|
protected override void OnStop() |
|
|
|
protected override void OnStop() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (ProfilerService.CurrentProfiler.IsRunning) { |
|
|
|
if (ProfilerService.CurrentProfiler.IsRunning) { |
|
|
|
|
|
|
|
LoggingService.Info("stopping profiler..."); |
|
|
|
ProfilerService.CurrentProfiler.Stop(); |
|
|
|
ProfilerService.CurrentProfiler.Stop(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|