Interface CallStackSeries.IThreadIdProvider
- Enclosing class:
- CallStackSeries
public static interface CallStackSeries.IThreadIdProvider
Interface for classes that provide a thread ID at time t for a callstack. The
thread ID can be used to calculate extra statistics per thread, for example,
the CPU time of each call site.
-
Method Summary
Modifier and TypeMethodDescriptionint
getThreadId
(long time) Get the ID of callstack thread at a given timeboolean
Return whether the value returned by this provider is variable through time (ie, each function of a stack may have a different thread ID), or is fixed (ie, all functions in a stack have the same thread ID)
-
Method Details
-
getThreadId
int getThreadId(long time) Get the ID of callstack thread at a given time- Parameters:
time
- The time of request- Returns:
- The ID of the thread, or
IHostModel.UNKNOWN_TID
if unavailable
-
variesInTime
boolean variesInTime()Return whether the value returned by this provider is variable through time (ie, each function of a stack may have a different thread ID), or is fixed (ie, all functions in a stack have the same thread ID)- Returns:
- If
true
, the thread ID will be identical for a stack all throughout its life, it can be therefore be used to provider other thread-related information on stack even when there are no function calls.
-