提交 2d04131e 编写于 作者: L Larry Golding

ProcessWatchdog: Rename CrashDumpMonitor => CrashDump

上级 074f0c68
......@@ -6,7 +6,7 @@
namespace ProcessWatchdog
{
internal static class CrashDumpMonitor
internal static class CrashDump
{
public static Process MonitorProcess(int processId, string description, string outputFolder, string procDumpPath)
{
......@@ -46,6 +46,7 @@ private static string GetProcDumpArgumentsForMonitoring(int pid, string dumpFile
// -g: Run as a native debugger in a managed process (no interop).
// -e: Dump when an unhandled exception happens.
// -b: Dump when a breakpoint (__int 3 / Debugger.Break()) is encountered.
// -h: Dump when a window hang is encountered.
// -t: Dump when process terminates.
// -ma: Create a full memory dump.
//
......@@ -53,7 +54,7 @@ private static string GetProcDumpArgumentsForMonitoring(int pid, string dumpFile
// the CLR will always handle unhandled exceptions. From procdump's point of
// view, there is no such thing as an unhandled exception for a managed app.
return $"-accepteula -g -e -b -t -ma {pid} \"{dumpFileName}\"";
return $"-accepteula -g -e -b -h -ma {pid} \"{dumpFileName}\"";
}
}
}
......@@ -29,7 +29,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="ConsoleUtils.cs" />
<Compile Include="CrashDumpMonitor.cs" />
<Compile Include="CrashDump.cs" />
<Compile Include="Options.cs" />
<Compile Include="Program.cs" />
<Compile Include="Resources.Designer.cs">
......
......@@ -47,7 +47,7 @@ private int Run()
using (Process process = Process.Start(processStartInfo))
{
using (Process procDumpProcess = CrashDumpMonitor.MonitorProcess(
using (Process procDumpProcess = CrashDump.MonitorProcess(
process.Id,
_options.Executable,
_options.OutputFolder,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册