I wonder if there is a way to either programatically or using a third party tool (profiler?) get an overview of how many instances of a class are currently active in the AppDomain (including or excluding derived classes), and even better, where they are allocated (not sure if that is even possible).
I know that I could change my own classes to include some running counter somehow, but I also want this for (managed) classes that I do not control.
Is that even possible? Some hints or keywords would be helpful :)