Calculate private working set (memory) using C#.
- by Gnucom
Hello,
How do I calculate the private working set of memory using C#? I'm interested in produces roughly the same figure as taskmgr.exe.
I'm using the Process namespace and using methods/data like WorkingSet64 and PrivateMemorySize64, but these figures are off by 100MB or more at times.
Thanks,