Greetings,
IF one wanted to get the memory utilization just like the windows task manager
does .. what do you need to sum? .. if I add together all the processes I'm
still short ..
my snippet
private Int64 total_mem_usage ()
{
Int64 memUsed = 0;
System.Diagnost ics.Process[] PrsArr = System.Diagnost ics.Process.Get Processes();
foreach (System.Diagnos tics.Process p in PrsArr)
{
memUsed += p.WorkingSet64;
}
return memUsed;
}
---------------------------------------------
[Sam Samson] - There is no greater folly than fixed price quoting.
IF one wanted to get the memory utilization just like the windows task manager
does .. what do you need to sum? .. if I add together all the processes I'm
still short ..
my snippet
private Int64 total_mem_usage ()
{
Int64 memUsed = 0;
System.Diagnost ics.Process[] PrsArr = System.Diagnost ics.Process.Get Processes();
foreach (System.Diagnos tics.Process p in PrsArr)
{
memUsed += p.WorkingSet64;
}
return memUsed;
}
---------------------------------------------
[Sam Samson] - There is no greater folly than fixed price quoting.
Comment