Instances of class at runtime

G

Guest

Hi,
Can someone please let me know if, during runtime, without using any counter
in a class (say class constructor), is it possible to find the number of
instances of a particular class (class objects) created and are not garbage
collected?
Thanks,
Naresh
 
M

Mattias Sjögren

Can someone please let me know if, during runtime, without using any counter
in a class (say class constructor), is it possible to find the number of
instances of a particular class (class objects) created and are not garbage
collected?

Not from within the managed code itself. It may be possible with the
native profiling and/or debugging APIs.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top