Forum C# Trying to profile RAM usage?

Trying to profile RAM usage?

Postby whitershores » July 25th, 2012, 2:01 am

I was looking to find out the RAM used by my game, however these are blacklisted:

Code: Select all
Process currentProcess = System.Diagnostics.Process.GetCurrentProcess();
int totalBytesOfMemoryUsed = (int) ( (currentProcess.WorkingSet64 / 1024) / 1024 );


- Any chance of a Development Server-only whitelist? (I assume a Live server whitelist would not make any sense anyway due to shared resources)
But it would be nice if I could get an idea how much memory the game is consuming, just so that i stay within the limits!
whitershores
Paid Member
 
Posts: 88
Joined: June 21st, 2011, 4:19 pm

Re: Trying to profile RAM usage?

Postby Henrik » July 25th, 2012, 1:56 pm

Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm


Return to C#