Is there a way to retrieve a C# app's current memory usage?

前端 未结 3 1478
暖寄归人
暖寄归人 2020-12-06 04:30

I am automating some profiling tasks and want to log heap space and generation sizes real-time. The profiling API seems awfully complicated for what I need, and it seems to

3条回答
  •  误落风尘
    2020-12-06 04:59

    There are performance counters for a lot of this stuff and if you can't use Perfmon, you can access counters through the Diagnostics API.

提交回复
热议问题