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
-
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
-
Constructor Details
-
HotspotDetectionStage
public HotspotDetectionStage() -
HotspotDetectionStage
public HotspotDetectionStage(int maxOutput, java.io.PrintStream printStream)
-
-
Method Details
-
execute
- Specified by:
execute
in classteetime.framework.AbstractConsumerStage<Trace>
-
onTerminating
protected void onTerminating()- Overrides:
onTerminating
in classteetime.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)
-