java.lang.Object
org.eclipse.tracecompass.incubator.analysis.core.weighted.tree.WeightedTreeGroupBy

public final class WeightedTreeGroupBy extends Object
A class containing helper methods to group aggregated callgraph data by the different available groups
Author:
Geneviève Bastien
  • Method Details

    • groupWeightedTreeBy

      public static <@NonNull N, E, T extends WeightedTree<@NonNull N>> WeightedTreeSet<N,Object> groupWeightedTreeBy(IWeightedTreeGroupDescriptor groupBy, IWeightedTreeSet<@NonNull N,E,T> weightedTreeSet, IWeightedTreeProvider<@NonNull N,E,T> provider)
      Group callgraph groups by one of the descriptor.
      Type Parameters:
      N - The type of objects represented by each node in the tree
      E - The type of elements used to group the trees. If this type extends ITree, then the elements and their associated weighted trees will be grouped in a hierarchical style
      T - The type of the tree provided
      Parameters:
      groupBy - The group descriptor by which to group the call graph elements.
      weightedTreeSet - The weighted tree set to group trees for
      provider - The weighted tree provider
      Returns:
      A weighted tree set that is the result of the grouping by the descriptor