Interface IFlameChartProvider
- All Superinterfaces:
IAnalysisModule
,IAnalysisRequirementProvider
,ISegmentStoreProvider
,ITmfComponent
- All Known Implementing Classes:
InstrumentedCallStackAnalysis
,LttngUstCallStackAnalysis
Interface that can be implemented by components who provide call stacks as
part of their data.
- Author:
- Geneviève Bastien
-
Method Summary
Modifier and TypeMethodDescription@Nullable CallStackSeries
Get the callstacks series provided by this analysis.long
getEnd()
Return the current end time of this flame chart.Get the ID of the host this callstack provider is for TODO: Deprecate me, now using the interfaces fromCallStackHostUtils
boolean
Return whether this analysis is completedefault com.google.common.collect.Multimap<CallStackDepth,
ISegment> queryCallStacks
(Collection<CallStackDepth> collection, Collection<Long> times) Query the requested callstacks and return the segments for the sampled times.Methods inherited from interface org.eclipse.tracecompass.tmf.core.analysis.IAnalysisModule
addParameter, cancel, canExecute, fail, getDependencyLevel, getHelpText, getHelpText, getId, getOutputs, getParameter, isAutomatic, isQueryable, notifyParameterChanged, registerOutput, schedule, setAutomatic, setId, setName, setParameter, setTrace, waitForCompletion, waitForCompletion
Methods inherited from interface org.eclipse.tracecompass.tmf.core.analysis.requirements.IAnalysisRequirementProvider
getAnalysisRequirements
Methods inherited from interface org.eclipse.tracecompass.analysis.timing.core.segmentstore.ISegmentStoreProvider
addListener, getSegmentAspects, getSegmentStore, removeListener
Methods inherited from interface org.eclipse.tracecompass.tmf.core.component.ITmfComponent
broadcast, broadcastAsync, dispose, getName
-
Method Details
-
getCallStackSeries
@Nullable CallStackSeries getCallStackSeries()Get the callstacks series provided by this analysis.- Returns:
- The callstack series or null if it is not available yet
-
getHostId
String getHostId()Get the ID of the host this callstack provider is for TODO: Deprecate me, now using the interfaces fromCallStackHostUtils
- Returns:
- The ID of the host
-
isComplete
boolean isComplete()Return whether this analysis is complete- Returns:
true
if the analysis is completed, whether failed or not,false
if it is currently running
-
getEnd
long getEnd()Return the current end time of this flame chart. The return value of this method may change as long as theisComplete()
method returnsfalse
. When the flame chart is complete, then this value should stay the same. If the value is not known, impossible to compute or not available, the return value should beInteger.MIN_VALUE
.- Returns:
- The end time of the flame chart, in nanoseconds, or
Integer.MIN_VALUE
if end time is not available.
-
queryCallStacks
default com.google.common.collect.Multimap<CallStackDepth,ISegment> queryCallStacks(Collection<CallStackDepth> collection, Collection<Long> times) Query the requested callstacks and return the segments for the sampled times. The returned segments will be simplyISegment
when there is no function at a given depth, orICalledFunction
when there is an actual function.- Parameters:
collection
- The callstack entries to querytimes
- The complete list of times to query, they may not all be within this series's range- Returns:
- A map of callstack depths to a list of segments.
-