Application/Process memory usage

is there anyway to determine how much he memory footprint of a particular applicaton process is and how cpu usage it is taking up at any given time?
[149 byte] By [farseer] at [2008-2-26]
# 1
From managed code? You can call GetTotalMemory and GlobalMemoryStatus. I have links on how to do that (step 4) and a whole bunch of other memory related tips here:
http://www.danielmoth.com/Blog/2005/01/memory-problems-faq.html

Cheers
Daniel

DanielMoth at 2007-9-9 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 2
I, i haven't had a chance to sit down and go thru your articles as yet, but a quick question. I have found some references to using GlobalMemoryStatus in previous searches. Does this actually return the memory allocated to a GIVEN PROCESS, or is it particular to the total memory of the device?

Daniel Moth wrote:
From managed code? You can call GetTotalMemory and GlobalMemoryStatus. I have links on how to do that (step 4) and a whole bunch of other memory related tips here:
http://www.danielmoth.com/Blog/2005/01/memory-problems-faq.html

Cheers
Daniel

farseer at 2007-9-9 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...