I am playing with the new Java Mission Control Profiler that is coming with the Java 7u40 and I cannot make it to profile allocation and collect object statistics. No matter what I do, I cannot see any statistics in the Memory -> Object Statistics window.
The following command starts the collection:
jcmd <pid> JFR.start duration=60s settings=profile filename=alloc-prof.jfr
The Java Mission Control documentation does not mention any specific options to enable object profiling. I have tried to create my own profile and set :
<flag name="heap-statistics-enabled" label="Heap Statistics">true</flag>
<flag name="allocation-profiling-enabled" label="Allocation Profiling">true</flag>
But still no Object Statistics are collected.