我有一个 System.Diagnostics.Process
对象。我的 C# 程序正在监视它的某些情况。满足条件时,我想获取进程的完整内存转储。
实现此目标的最佳方法是什么?
CLR 是否提供了一种方法?
最佳答案
你可以使用 ProcDump from Sysinternals并让您的 C# 程序在需要时调用它。
Process.Start("procdump " + otherProgramPID.ToString());
关于c# - 使用 C# 进行内存转储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5880398/