Re: GC Roots? How to iterate long-lived objects?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Mark,
Take a look at the profiler from Sci-Tech AB [http://www.scitech.se]
When you take a snapshot of your application the profiler will do a
full GC and display the remaining objects. You can also take multiple
snapshots and do a before and after comparison.

- John

MarkR wrote:
> Hi, all:
>
> I have a C# application that slows down over time, and and I'm trying to
> figure out what the causes might be. One suspect is long-lived objects --
> is there a good way to generate the object graph the garbage collector uses,
> so I can see which objects remain uncollectable? I expected to see a
> feature like this in the CLR Profiler, but I've not been able to located it.
> Do I need to build it myself using reflection?
>
> Also, there is a commercial profiler that has a button to trigger a GC
> externally; is there a freeware to duplicate this functionality? I know that
> GC.Collect() is a) frowned upon and b) only a suggestion to the CLR -- any
> other tricks?
>
> Thank you for any help,
> /m

.



Relevant Pages