java.lang.Object
org.eclipse.tracecompass.incubator.analysis.core.weighted.tree.WeightedTree<ICallStackSymbol>
org.eclipse.tracecompass.incubator.analysis.core.concepts.AggregatedCallSite
All Implemented Interfaces:
Comparable<WeightedTree<ICallStackSymbol>>
Direct Known Subclasses:
AggregatedStackTraces

public class AggregatedCallSite extends WeightedTree<ICallStackSymbol>
Base class for aggregating call site data from either sampled or instrumented call stacks.
Author:
Geneviève Bastien
  • Constructor Details

    • AggregatedCallSite

      public AggregatedCallSite(ICallStackSymbol symbol, long initialLength)
      Constructor
      Parameters:
      symbol - The symbol of the call site. It can eventually be resolved to a string using the symbol providers
      initialLength - The initial length of this object
  • Method Details

    • getCallees

      public Collection<AggregatedCallSite> getCallees()
      TODO: This is used in unit tests only, those should be updated instead Return the children as a collection of aggregatedCallSite
      Returns:
      The children as callees
    • copyOf

      public AggregatedCallSite copyOf()
      Make a copy of this callsite, with its statistics. Implementing classes should make sure they copy all fields of the callsite, including the statistics.
      Overrides:
      copyOf in class WeightedTree<ICallStackSymbol>
      Returns:
      A copy of this aggregated call site
    • getStatistics

      public Map<String,IStatistics<?>> getStatistics()
      Get additional statistics for this call site
      Returns:
      A map of statistics title with statistics
    • toString

      public String toString()
      Overrides:
      toString in class WeightedTree<ICallStackSymbol>