Taking memory dump using C#

后端 未结 3 1832
孤独总比滥情好
孤独总比滥情好 2021-02-04 00:15

I\'ve got a System.Diagnostics.Process object. My C# program is monitoring it for some condition. When the condition is hit, I want to take a full memory d

3条回答
  •  醉酒成梦
    2021-02-04 00:53

    You could use ProcDump from Sysinternals and make your C# program call it when needed.

    Process.Start("procdump " + otherProgramPID.ToString());
    

提交回复
热议问题