What I'd want to know is how can I inspect all the instances that where collected in a certain Garbage Collection (or between two snapshots).
I'm not interested in what's been allocated, only on what's been collected (in overview there's a "with new or removed instances", I suppose it'd be something like "with removed instances" only)
Is there any way to accomplish this?
We will soon release version 5.7 of the profiler, but version 6.0 will not be released until later this year.
SciTech Software AB
I think my question was not clear enough, or it didn't represent exactly what I was meaning (sometimes my english is quite bad).
I'm not specifically interested in the collected instances which are collected in a GC sweep. It would be nice to get them, and would solve my problem, but that's not what I really meant.
What I'd like to get is a list of instances (well, its stackframe) which are going to be garbage collected. Or in other words, capturing 2 snapshots, the list of instances that are in Snapshot #1 but are no longer in the Snapshot #2 (so are about to be collected in the next GC sweep).
I've been playing a little bit more with the profiler and I think I've narrowed the search a little bit. If I capture and compare two snapshots, go to overview and "with any allocation", on Live instances / Live bytes, sorting by "Removed" should show me what I'm searching, isn't it? They would be instances that were in Snap#1 but no longer are on Snap#2 , so are about to be collected sooner or later?
The "Removed instances" value does represent the number of these instances. However, if you look at the type details, you will not get a list with the removed instances. You can get a list with all live instances, or a list of all new instances, but no instance information is available for the removed instances (just a count). But, as I mentioned, in version 6.0, it will be possible to get a list of removed instances as well, with information such as the allocation call stack.
SciTech Software AB
Users browsing this forum: No registered users and 12 guests