Comparing GDI object counts with task manager

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
rstrangfeld
Posts: 1
Joined: Wed Jul 18, 2007 9:52 pm

Comparing GDI object counts with task manager

Post by rstrangfeld » Wed Jul 18, 2007 10:01 pm

I'm a big fan and promoter of Profiler 2.6, currently enjoying a trial install of 3.0 while waiting for the paperwork on the upgrade request to go through. Thanks for making an excellent, well-thought-out, and useful tool!

In using 3.0, though, I'm wondering what kind of correlation we should see between GDI objects reported in the task manager and those reported in Profiler 3.0? The numbers don't seem to be directly related.

In particular, we have situations where the task manager reports steadily increasing GDI counts as the user does something repeatedly, but comparing profiler snapshots shows no delta of GDI (or USER) objects at all.

Do you have any suggestions?
Thanks!
- Rich

Andreas Suurkuusk
Posts: 1029
Joined: Wed Mar 02, 2005 7:53 pm

Post by Andreas Suurkuusk » Thu Jul 19, 2007 10:45 pm

The GDI and USER objects presented by the resource tracker should be pretty directly related to the numbers presented by the Task manager. The profiler will not detect all resource instance creations, especially during startup, but most instances should be tracked.

However, if there is a risk that the destruction of a resource instance might get missed (e.g. if it might get destroyed by kernel code), the profiler will ignore the instance creation. For more information see http://memprofiler.com/OnlineDocs/resou ... ations.htm.

In your case, does the profiler present any allocations of USER and GDI instances? Do you have any idea what type of GDI objects are causing the count of objects to increase (e.g. bitmaps, fonts etc)?
Best regards,

Andreas Suurkuusk
SciTech Software AB

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests