How to counter object created by hotspot
Colin(Du Li)
dawn2004 at gmail.com
Mon Jul 13 14:58:39 PDT 2009
Can anyone give a hand?
Thanks a lot!
Colin
Colin(Du Li) wrote:
>
> Hi, guys,
>
> I wanna count the number of Java Objects created by Hotspot. Does Hotspot
> have some tool to count them?
>
> If no, I just count how many times the following two methods are invoked,
> is that accurate?
> CollectedHeap::common_permanent_mem_allocate_init(size_t size,
> TRAPS)
> CollectedHeap::common_mem_allocate_init(size_t size, bool
> is_noref, TRAPS)
>
> Is there better solution to do this counting?
>
> p.s. I use serial GC.
>
> Thanks a lot!
>
> Colin
>
--
View this message in context: http://www.nabble.com/How-to-counter-object-created-by-hotspot-tp24454920p24470194.html
Sent from the OpenJDK Hotspot Virtual Machine mailing list archive at Nabble.com.
More information about the hotspot-dev
mailing list