Assumption: You have remote performance monitor installed and running (this will be the topic of another blog post, or you can review the references at the end of this article).
Garbage Collector
- GC Latency Time
Memory Usage
- AppDomain and JIT Heaps:
- Never shrinks.
- Returns memory at the end of the applications life.
- Impacts the 32MB virtual memory limit on Windows CE 5.0.
- Typically these should be under 1MB, although they can be larger on really big applications.
- Size is related to the number of types, along with the number and size of method calls.
- GC Heap
- Varies with the life of the application
- Impacts the 32MB virtual memory limit
- 4-5 MB is not uncommon.
- The amount of change in the GC heap is of more concern
How can I make my app faster?
I would suggest reading the post referenced below published by the MS Compact Framework team. I’ve seen it copied almost word for word at several places, so I’m not going to do that here. There is also an entire section in MSDN on Compact Framework Performance (see references below).
References:
- http://dotnet.sys-con.com/read/315037_2.htm
- http://dotnet.sys-con.com/read/180970.htm
- Definitions of all Performance Monitor Objects
- PPT from MDC 2006
- MS Compact Framework Team on Performance
- MSDN section on Compact Framework Performance