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()  
    HotspotDetectionStage​(int maxOutput, java.io.PrintStream printStream)  
  • Method Summary

    Modifier and Type Method Description
    protected void execute​(Trace trace)  
    protected void onTerminating()  
    static <K,​ V extends java.lang.Comparable<? super V>>
    java.util.Map<K,​V>
    sortMapByValue​(java.util.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

  • 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 java.lang.Comparable<? super V>> java.util.Map<K,​V> sortMapByValue​(java.util.Map<K,​V> map)