9

Is there a tool I could use for profiling (memory) a .NET compact framework 3.5 application (Windows Mobile)?

Thanks!

splattne
  • 102,760
  • 52
  • 202
  • 249

3 Answers3

7

Use the Remote Performance Monitor that comes with Studio. It gives snapshots of the GC heap, traceable roots and much more.

ctacke
  • 66,480
  • 18
  • 94
  • 155
  • 1
    It just gives you a bunch of useless information. How can anyone possibly use this to find which parts of your code are being memory hogs or have memory leaks? – still_dreaming_1 Apr 22 '11 at 22:25
  • 1
    I've used it on several occasions and gotten valuable info from its output. Sure, you have to understand how to read its root graphs and trace back allocations, but once you get your hands around that, it's quite useful. – ctacke Apr 22 '11 at 23:59
3

Equatec supports .NET CF 3.5

Community
  • 1
  • 1
Amit G
  • 5,165
  • 4
  • 28
  • 29
  • 3
    Thanks, but I was looking for a memory profiler: "The EQATEC Profiler is a code profiler, not a memory profiler. So it's all about making your app run faster, not about tracking objects and memory." – splattne Jun 26 '09 at 13:22
  • FWIW, Eqatec was purchased by Telerik, rolled into JustTrace and CF support was dropped (sadly). So we're back to pretty much no good solution. – ctacke Jun 12 '16 at 19:19
2

The CLR Profiler also comes with the CF-SDK, and allows to view the heap of a process. In contrast to Remote Performance Monitor it doesn't crash all the time ;-)

Community
  • 1
  • 1
Bob
  • 5,510
  • 9
  • 48
  • 80
  • The CLR Profiler always shows an error message saying "invalid parameter 'index'" when trying to download the heap dump. Does anyone have a solution? – Christian Schwarz Jul 23 '10 at 12:23
  • 1
    There is a hotfix / workaround for the crashes of the Remote Performance Monitor. I wrote about it here: http://geekswithblogs.net/GruffCode/archive/2012/12/27/finding-memory-leaks-in-.net-compact-framework-applications.aspx – Jesse Taber Dec 27 '12 at 11:39