Class CPUSamplerData
java.lang.Object
com.oracle.truffle.tools.profiler.CPUSamplerData
Execution profile of a particular context.
- Since:
- 21.3.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncom.oracle.truffle.api.TruffleContext
Deprecated.in 24.1.0.int
The sample bias is a measurement of of how much time passed between requesting a stack sample and starting the stack traversal.The sample duration is a measurement of how long it took to traverse the stack when taking a sample.long
long
long
Returns how may samples were missed, i.e.
-
Method Details
-
getContextIndex
public int getContextIndex()- Returns:
- The index of the context this data applies to. It is the index of this data in the
data list
. The index is zero based and corresponds to the order of context creations on the engine. - Since:
- 24.1.0
-
getContext
Deprecated.in 24.1.0. Contexts are no longer stored permanently. This method will return null if the context was already collected. UsegetContextIndex()
to differentiate sampler data for different contexts.- Returns:
- The context this data applies to or null if the context was already collected.
- Since:
- 21.3.0
-
getThreadData
- Returns:
- A mapping from each thread executing in the context to the
ProfilerNode
s describing the profile of the execution. - Since:
- 21.3.0
-
getSamples
public long getSamples()- Returns:
- how many samples were taken.
- Since:
- 21.3.0
-
getSampleInterval
public long getSampleInterval()- Returns:
- what was the sampling interval.
- Since:
- 21.3.0
-
getSampleBias
The sample bias is a measurement of of how much time passed between requesting a stack sample and starting the stack traversal. This method provies a summary of said times during the profiling run.- Returns:
- A
LongSummaryStatistics
of the sample bias. - Since:
- 21.3.0
-
getSampleDuration
The sample duration is a measurement of how long it took to traverse the stack when taking a sample. This method provides a summary of said times during the profiling run.- Returns:
- A
LongSummaryStatistics
of the sample duration. - Since:
- 21.3.0
-
missedSamples
public long missedSamples()Returns how may samples were missed, i.e. how many times taking a stack sample was requested but was not provided by the runtime in a timely manner.- Returns:
- The number of missed samples.
- Since:
- 21.3.0
-