Duplicate primitive wrapper memory inspection

Questions about YourKit Java Profiler
Post Reply
gaul
Posts: 1
Joined: Tue Feb 25, 2014 1:19 am

Duplicate primitive wrapper memory inspection

Post by gaul »

Could YourKit add a memory inspection for duplicated primitive wrappers, e.g., Long? My application has several Map<Long, Object> containing millions of objects and I suspect that I have many duplicate Long due to autounboxing to long then autoboxing back to Long. If YourKit could detect duplicate primitive wrappers I could ensure that I use the same, boxed wrapper everywhere. Note that this feature request shares similarities with the existing duplicate String detection.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Duplicate primitive wrapper memory inspection

Post by Anton Katilin »

Thank you for the suggestion.

We'll implement this inspection in one of upcoming EAP builds.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Duplicate primitive wrapper memory inspection

Post by Anton Katilin »

Hi,

We've added new "Duplicate objects" inspection in the build 14012:
http://www.yourkit.com/eap

It covers primitive wrappers too.

Best regards,
Anton
Post Reply