It should be possible to switch between the attribute to use for the flame graph. For example, the allocated bytes can be more interesting than the event count, or the duration waited.
So, I propose adding a combo box, and filling out the combo box with the attribute names of all the numerical attributes found for the types in the IItemCollection (letting count be a special case on top, which is basically using the count aggregation function).
When an attribute is selected, that attribute is instead used to calculate the weights in the tree.
- We probably want to keep the selected attribute (if available) when switching selections. If the selected attribute is not available, we default to count (which is always available).
- There are a couple of possible places for the combobox, I think. One is on the top of the flame graph page, perhaps next to the filter box. Another is using the view menu and populate the choices as submenus. Another is perhaps trying to place it in the view toolbar. The first one is probably the best.