Dear Collegues,
How to get the total amount of memory, used in the current application?
E.g., in Delphi (and, as far as I know, in C++), it was accessible via the global variable AllocMemSize. I was failed to find an analogue in C#...
Is there an analogue of AllocMemSize in C# ?how to get the total amount of used memory?
Page 1 of 1
3 Replies - 425 Views - Last Post: 18 December 2010 - 02:53 AM
Replies To: Is there an analogue of AllocMemSize in C# ?
#2
Re: Is there an analogue of AllocMemSize in C# ?
Posted 17 December 2010 - 07:03 PM
I think your best bet is getting it through System.Diagnostics.Process.
For example something like this:
Hope this helps
For example something like this:
Process currentProc = Process.GetCurrentProcess(); long memoryUsed = currentProc.PrivateMemorySize64;
Hope this helps
#3
Re: Is there an analogue of AllocMemSize in C# ?
Posted 17 December 2010 - 08:36 PM
#4
Re: Is there an analogue of AllocMemSize in C# ?
Posted 18 December 2010 - 02:53 AM
Yes, you can use the Refresh() method of the Process class.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|