Class HotspotDetectionStage

java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<Trace>
kieker.analysis.util.debug.hotspotdetection.HotspotDetectionStage

public class HotspotDetectionStage extends teetime.framework.AbstractConsumerStage<Trace>
This stage excepts traces at its input port and prints their operation calls to a given PrintStream, which have the longest execution time without their children. The number of operation call that will be printed can be configured. The default print stream is System.out.
Since:
1.14
Author:
Sören Henning, Stephan Lenga
  • Field Summary

    Fields inherited from class teetime.framework.AbstractConsumerStage

    inputPort

    Fields inherited from class teetime.framework.AbstractStage

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    HotspotDetectionStage(int maxOutput, PrintStream printStream)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    execute(Trace trace)
     
    protected void
     
    static <K, V extends Comparable<? super V>>
    Map<K,V>
    sortMapByValue(Map<K,V> map)
     

    Methods inherited from class teetime.framework.AbstractConsumerStage

    createInputPort, execute, getInputPort

    Methods inherited from class teetime.framework.AbstractStage

    abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompleted

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • HotspotDetectionStage

      public HotspotDetectionStage()
    • HotspotDetectionStage

      public HotspotDetectionStage(int maxOutput, PrintStream printStream)
  • Method Details

    • execute

      protected void execute(Trace trace)
      Specified by:
      execute in class teetime.framework.AbstractConsumerStage<Trace>
    • onTerminating

      protected void onTerminating()
      Overrides:
      onTerminating in class teetime.framework.AbstractStage
    • sortMapByValue

      public static <K, V extends Comparable<? super V>> Map<K,V> sortMapByValue(Map<K,V> map)