Generation count for classes in heap
Hi
I am trying to create a memory profiler, and one feature that I would like it to have is when you request a heap dump, it will be able to give you a generation count for each type of class. By the generation count, I mean the number of different ages of all objects of that class. Do you have any ideas how i would go about calculating this figure?
To keep track of the object allocations, i think i will have to use BCI. Then, for each object allocation, I also want to be able to store the stack trace, so I can present on the front end gui what percentage of objects was created by which method. How would I be able to get the stack trace for each object allocation?
Any help would be much appreciated
Thanks
Billy

