Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Convenience tabular views for HashMap/LinkedHashMap/TreeMap

Moderators: Vladimir Kondratyev, Anton Katilin

Convenience tabular views for HashMap/LinkedHashMap/TreeMap

Postby plethora » Wed May 11, 2011 9:19 pm

Sometimes I want to explore the data inside Map instances.
Typically the key and/or value is a primitive or a string.

It would be convenient it YourKit would provide a tabular data view for such objects.
Exploring to CSV would be worth bonus points.

-tt
plethora
 
Posts: 314
Joined: Thu Jun 02, 2005 8:36 pm

Re: Convenience tabular views for HashMap/LinkedHashMap/Tree

Postby Anton Katilin » Thu May 12, 2011 9:42 am

Hello,

Thanks for the suggestion.

Could you please clarify: do you want to see a table-like view in reference explorers, with 2 columns - "key" and "value"?

It is technically difficult to place a table inside existing explorer as a cell. Maybe we should use approach like special action for browsing collections as a table, or making it a part of Quick info action/tab, or adding a dedicated slave tab?

Best regards,
Anton
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am

Re: Convenience tabular views for HashMap/LinkedHashMap/Tree

Postby plethora » Thu May 12, 2011 6:47 pm

Hi Anton,

I don't have very clear ideas on UI actually.
If the key and/or value are non-primitive types, if would of course be convenient to easily explore incoming/outgoing references from such a view as well.

Note that the actual Map data might be large, so my main requirement is to be able to handle datasets of 10000+ items.
Exploring to CSV is nice, being able to sort/search by key is nice.

While a dedicated tab sounds like the best approach to me, I'll leave it to you to choose something for a (first) implementation.
It's always possible to request improvements afterwards. Perhaps Alex/limejuice will chime in with some suggestions. :)

Kind regards,
Taras
plethora
 
Posts: 314
Joined: Thu Jun 02, 2005 8:36 pm

Re: Convenience tabular views for HashMap/LinkedHashMap/Tree

Postby Anton Katilin » Fri May 13, 2011 9:59 am

Hello Taras

I don't have very clear ideas on UI actually.
If the key and/or value are non-primitive types, if would of course be convenient to easily explore incoming/outgoing references from such a view as well.


Agree.

Note that the actual Map data might be large, so my main requirement is to be able to handle datasets of 10000+ items.


We can solve it similarly to how arrays are shown in explorers, or string representation of objects is implemented in Quick info: show element in particular range, with ability to set the start element and the number of elements to show.

Exploring to CSV is nice, being able to sort/search by key is nice.


Export to CSV can be implemented independently from the presentation in UI, e.g. by adding a popup menu item "Export map" applicable to the currently selected object.

Does this feature make sense alone? I.e., will it be valuable if we implement it first, and then provide special map UI in future builds?

While a dedicated tab sounds like the best approach to me, I'll leave it to you to choose something for a (first) implementation.
It's always possible to request improvements afterwards. Perhaps Alex/limejuice will chime in with some suggestions. :)


Yes, we'll start with something :) I've added a feature request.

Best regards,
Anton
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am

Re: Convenience tabular views for HashMap/LinkedHashMap/Tree

Postby plethora » Thu May 19, 2011 5:07 pm

ConcurrentHashMap would be an obvious candidate as well.
plethora
 
Posts: 314
Joined: Thu Jun 02, 2005 8:36 pm

Re: Convenience tabular views for HashMap/LinkedHashMap/Tree

Postby Anton Katilin » Fri May 20, 2011 4:42 pm

ConcurrentHashMap would be an obvious candidate as well.


Yes.

Could you please share your opinion on my question about CSV export; it is in my previous posting.
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am

Re: Convenience tabular views for HashMap/LinkedHashMap/Tree

Postby plethora » Fri May 20, 2011 5:44 pm

Hi Anton,

For me, the ability to export to CSV would make sense by itself (eg. without a dedicated UI to explore the map content).
I assume that such a feature would use export primitives/boxed primitives/Strings as-is, and would fallback to objectId or such for reference types?

Kind regards,
Taras
plethora
 
Posts: 314
Joined: Thu Jun 02, 2005 8:36 pm

Re: Convenience tabular views for HashMap/LinkedHashMap/Tree

Postby plethora » Sat May 21, 2011 9:24 pm

Another good candidate for convenient export/browsing would be trove4j maps.
plethora
 
Posts: 314
Joined: Thu Jun 02, 2005 8:36 pm

Re: Convenience tabular views for HashMap/LinkedHashMap/Tree

Postby Anton Katilin » Mon Oct 10, 2016 3:46 pm

Sometimes I want to explore the data inside Map instances.
Typically the key and/or value is a primitive or a string.

This functionality was added in 2016.06 EAP.
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot] and 4 guests