Re: Method to find out RAM usage of WinCE Applications



You don't need the source code of the 3rd party application to query it, you just need a handle to its process (use OpenProcess on the corresponding process id to get such a process handle).

-Ross

"Jimmy Lim" <JimmyLim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:5DEDA4B1-DCC7-44D4-BB5D-4455BC995DC1@xxxxxxxxxxxxxxxx
Hi Ross,

Thanks for the advice. However I do not have the source code for each of
the process running in the WinCE devices. Hence in there anyway to find out
the memory usage of each process throught a 3rd party means?

Sincerely
Jimmy

"Ross Jordan [MSFT]" wrote:

You can determine granular memory usage of other processes with VirtualQuery
(VirtualQueryEx in CE6). You can put it together with something like this
(applies to memory layout of CE6):

for (addr = 0x10000; addr < 1024*1024*1024; addr +=
(DWORD)mbi.RegionSize) {
if (!VirtualQueryEx(hProc, (LPCVOID)addr, &mbi, sizeof(mbi)))
break;
if (mbi.State == MEM_FREE)
dwAvailVirtual += (mbi.RegionSize -
((~(DWORD)mbi.BaseAddress+1)&0xffff)) & 0xffff0000;
}

For (system-wide) physical memory status, see GlobalMemoryStatus api.

-Ross

"Jimmy Lim" <JimmyLim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9E5918B7-129D-4418-A1CD-4A91B2B8E8F8@xxxxxxxxxxxxxxxx
> Hi All,
>
> I have a question to ask. I have a few WinCE Application (developed by
> 3rd
> parties) running on a device. Is there anyway to find out the RAM usage > of
> each application? Are there any utilities software i can make use of?
>
> Sincerely
> Jimmy



.



Relevant Pages

  • Re: Broadcom 440x NIC not recognized on boot
    ... I am attempting to add support for the built-in network device in my ... dmesg output now indicates the card is recognized, ... And it ain't getting the register memory it needs, ... The source code also refers to PCI assigning the memory block, ...
    (freebsd-questions)
  • Re: A question for the ladies
    ... But there was still that memory moving round the ... Them, it appeared, meant the Party, and above all the Inner Party, ... although he knew that they were safe here if they could be safe ... Party members were supposed not to swear, ...
    (sci.chem)
  • Re: attach to process not started in debug mode?
    ... Jeffrey - I do not have the source to the 3rd party tool used in my .NET app. ... code level and binary level(without source code). ... this debugging has nothing to do with debug or release ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework)
  • Re: Memory Leak in ASP.NET
    ... the workers process was restarting. ... I was using a 3rd party tool. ... I used an alternative approach to solve the memory problem. ... The problem is, when our customer schedules a reporting job, the memory ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: GPL FAQ(?)
    ... >>library can be under that separate license. ... That combined source code itself would be a work, ... > code from the third party for the user to obtain with whatever agreement ... > they wished between them and the third party that would almost certainly be ...
    (comp.os.linux.misc)