Instances of class at runtime

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top