Tools to Monitor Memory Utilization

Tools to Monitor Memory Utilization

am 11.01.2008 13:08:01 von Rohit

..NET is a memory hog - plain and simple. This, in my opinion, makes it less
than ideal for embedded applications where memory is constrained. I am
forced to use .NET for reasons that I will not go into, so I need to be able
to code my applications in such a way as to use memory efficiently.

So, is there a tool out there that will allow me monitor my application's
memory utilization on the embedded device? I am using the .NET compact
framework 2.0, programming in C# on a Windows PocketPC OS variant.

Even if there is a tool that will allow me to monitor the app's memory usage
in the emulator would be helpful.

Re: Tools to Monitor Memory Utilization

am 11.01.2008 13:29:21 von nemtsev

Hello Rohit,

Performance Counters?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


R> .NET is a memory hog - plain and simple. This, in my opinion, makes
R> it less than ideal for embedded applications where memory is
R> constrained. I am forced to use .NET for reasons that I will not go
R> into, so I need to be able to code my applications in such a way as
R> to use memory efficiently.
R>
R> So, is there a tool out there that will allow me monitor my
R> application's memory utilization on the embedded device? I am using
R> the .NET compact framework 2.0, programming in C# on a Windows
R> PocketPC OS variant.
R>

Re: Tools to Monitor Memory Utilization

am 11.01.2008 15:13:00 von Rohit

Performance Counters are not good enough. I need to be able to know which
data structures and/or .NET managed data types are occupying memory and
if/when the garbage collector is freeing them.

Basically, I need something like the CLR profiler but for a Windows PocketPC
OS instead of Windows XP. If I have retarget my app for Windows XP and then
use the profiler, that would be extremely idiotic.

If I can use performance counters (do the Windows PocketPC OSes even have
performance counters?) to figure out how to recode my app, please please tell
me - it would help immensely.

"Michael Nemtsev [MVP]" wrote:

> Hello Rohit,
>
> Performance Counters?
>
> ---
> WBR,
> Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
>
> "The greatest danger for most of us is not that our aim is too high and we
> miss it, but that it is too low and we reach it" (c) Michelangelo
>
>
> R> .NET is a memory hog - plain and simple. This, in my opinion, makes
> R> it less than ideal for embedded applications where memory is
> R> constrained. I am forced to use .NET for reasons that I will not go
> R> into, so I need to be able to code my applications in such a way as
> R> to use memory efficiently.
> R>
> R> So, is there a tool out there that will allow me monitor my
> R> application's memory utilization on the embedded device? I am using
> R> the .NET compact framework 2.0, programming in C# on a Windows
> R> PocketPC OS variant.
> R>
>
>
>