Class histogram in HS_GC profiler

Ron Pressler ron at paralleluniverse.co
Wed Dec 4 12:00:48 PST 2013


I’ve enabled some JMH profilers. They are extremely useful!
Would it be possible to add a class histogram in the HS-GC profiler? I looked at the VisualVM code to see how VisualVM does GC sampling. VisualVM uses several methods: jvmstat, com.sun.attach, or JMX. It seems like JMX is the simplest approach.

The code for a JMX class histogram is in the takeHeapHistogram() method in this file. The returned String is parsed here. Would it be possible to add class histogram info to the HS-GC profiler?


More information about the jmh-dev mailing list