memory used by process ?

L

Lloyd Dupont

how do I know how much memory is used by my program ?
I found a GlobalMemoryStatus, but no 'local' memory status function ...
 
B

Brian Smith [MSFT]

If you are only interested in the NetCF-related memory (managed objects
etc) then the NetCF performance counters might be the solution for you.
Search the newsgroup for "mscoree.stat" and you will find postings about
how to use them. If you are interested in finding out that information
programatically, you can use System.GC.GetTotalMemory(). If you are
interested in all of the memory used for your process, including native
memory allocated by Windows CE, you can look in the Memory Control Panel
applet or (with some difficulty) use a series of VirtualQuery Win32 API
calls.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Lloyd Dupont" <net.galador@ld>
| Subject: memory used by process ?
| Date: Wed, 12 Nov 2003 12:46:14 +1100
| Lines: 4
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: adsl-11-233.swiftdsl.com.au 218.214.11.233
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:38350
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| how do I know how much memory is used by my program ?
| I found a GlobalMemoryStatus, but no 'local' memory status function ...
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top