Poll C# app's memory usage at runtime?

后端 未结 5 1104
傲寒
傲寒 2020-12-14 02:42

I have an app that, while running, needs to poll its own memory usage. It would be ideal if it could list out the memory usage for each object instantiated. I know this ca

5条回答
  •  太阳男子
    2020-12-14 03:30

    Maybe

    Windows::System::Diagnostics::ProcessDiagnosticInfo::GetForCurrentProcess();
    

提交回复
热议问题