Type: New Feature
Affects Version/s: None
Fix Version/s: None
I would really welcome a histogram function for array data found in heap dumps.
Frequent example question that can't be answered easily with what's already offered in VisualVM and which should show what I'm up to:
"From the 123879 character arrays in my heap dump, ... how many are size 8192 characters, and how much memory do they consume together?"
A diagram view would be perfect but not immediately necessary.
Also, ... I would really welcome a similar histogram() function in the OQL console. I somehow emulated it using map(), sort(), and filter(), but the result is really unwieldy:
The signature of the histogram() function I have in mind would be something like:
Please note: A more generic (and thus even more welcome) approach would be to have something like "group by" in SQL. With its help a histogram and many other useful things could easily be created. And also it would be more intuitive to those familiar with SQL.