If jcmd users want to print statistical data about a specific property of the code heap (instead of requesting "all"), they first have to aggregate such data. If this step was forgotten, the requested function just returns. This should be improved.
------ Output before enhancement --------
> bin/jcmd <pid> Compiler.CodeHeap_Analytics FreeSpace
<pid>:
__ CodeHeapStateAnalytics lock wait took 0.000 seconds _________
__ CodeHeapStateAnalytics total duration 0.000 seconds _________
------ Output after enhancement --------
> bin/jcmd <pid> Compiler.CodeHeap_Analytics FreeSpace
<pid>:
__ CodeHeapStateAnalytics lock wait took 0.000 seconds _________
No aggregated data available for heap CodeHeap. Run function aggregate first.
__ CodeHeapStateAnalytics total duration 0.000 seconds _________