I’ve developed an C#/WPF application that requires to load hundreds of object models. Now I would like to know how much RAM this consumes. So what is the best way to check this? Can I just use the TaskManager? Or is this not reliable?
I’ve developed an C#/WPF application that requires to load hundreds of object models. Now
Share
You cannot use Task Manager to accurately gauge how much RAM your process consumes, as that number is inaccurately labeled; it’s actually the working set of the process.
If you want to see how much RAM your application is consuming, you should take a look at the .NET memory performance counters.
It should be noted that you should not try to optimize for how much RAM you are actually using unless you’ve actually identified that you have a performance bottleneck.