Or if you want to know the instances number of your custom type, then
you can create objects factory, where necessary count tracking will be
implemented...
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Had a quick look, and ICorProfilerCallback::ObjectsAllocatedByClass
looks handy. Basically what I would be interested in is tracking
object allocations and garbage collections over time to see if there
are any object leaks. Not sure if it can do the garbage collections
part of that though...
Or if you want to know the instances number of your custom type, then
you can create objects factory, where necessary count tracking will be
implemented...
PD> Had a quick look, and ICorProfilerCallback::ObjectsAllocatedByClass
PD> looks handy. Basically what I would be interested in is tracking
PD> object allocations and garbage collections over time to see if there
PD> are any object leaks. Not sure if it can do the garbage collections
PD> part of that though...
ClrProfiler is doing that. Source code of ClrProfiler is available, you can
dig in there and try to find out how it tracks gc collecitons...
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.