|
|
|
@ -41,9 +41,9 @@ namespace ICSharpCode.Profiler.AddIn.Dialogs
@@ -41,9 +41,9 @@ namespace ICSharpCode.Profiler.AddIn.Dialogs
|
|
|
|
|
@"ProfilingSessions\Session" + |
|
|
|
|
DateTime.Now.ToString("yyyyMMdd_HHmmss", CultureInfo.InvariantCulture) + ".sdps"); |
|
|
|
|
|
|
|
|
|
Directory.CreateDirectory(Path.GetDirectoryName(outputPath)); |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
Directory.CreateDirectory(Path.GetDirectoryName(outputPath)); |
|
|
|
|
|
|
|
|
|
var runner = CreateRunner(txtExePath.Text, txtWorkingDir.Text, txtArgs.Text, new ProfilingDataSQLiteWriter(outputPath)); |
|
|
|
|
|
|
|
|
|
if (runner != null) { |
|
|
|
@ -66,6 +66,8 @@ namespace ICSharpCode.Profiler.AddIn.Dialogs
@@ -66,6 +66,8 @@ namespace ICSharpCode.Profiler.AddIn.Dialogs
|
|
|
|
|
MessageService.ShowError(ex.Message); |
|
|
|
|
} catch (DirectoryNotFoundException ex2) { |
|
|
|
|
MessageService.ShowError(ex2.Message); |
|
|
|
|
} catch (UnauthorizedAccessException ex4) { |
|
|
|
|
MessageService.ShowError(ex4.Message); |
|
|
|
|
} catch (Exception ex3) { |
|
|
|
|
MessageService.ShowError(ex3); |
|
|
|
|
} |
|
|
|
|