final class StackTraceFactory extends java.lang.Object implements IPoolFactory<IMCStackTrace>
IMCStackTrace
from the stack trace pool. If the same stack trace
has been created before that trace is returned instead.Modifier and Type | Field and Description |
---|---|
private int |
m_bciIndex |
private int |
m_fieldCount |
private int |
m_frameIndex |
private int |
m_frameTypeIndex |
private int |
m_lineNumberIndex |
private int |
m_methodIndex |
private int |
m_truncateIndex |
private CanonicalConstantMap<IMCStackTrace> |
traceMap |
Constructor and Description |
---|
StackTraceFactory(ValueDescriptor[] traceDescriptors,
CanonicalConstantMap<IMCStackTrace> traceMap) |
Modifier and Type | Method and Description |
---|---|
private static java.util.List<IMCFrame> |
buildFilteredStackTrace(IMCFrame[] frames) |
private IMCFrame |
createFrame(java.lang.Object[] frameObject) |
IMCStackTrace |
createObject(long identifier,
java.lang.Object o)
Creates a replacement object for a value in a pool
|
private IMCStackTrace |
createTrace(java.lang.Object o) |
ContentType<IMCStackTrace> |
getContentType() |
private final int m_frameIndex
private final int m_truncateIndex
private final int m_methodIndex
private final int m_lineNumberIndex
private final int m_frameTypeIndex
private final int m_bciIndex
private final int m_fieldCount
private final CanonicalConstantMap<IMCStackTrace> traceMap
public StackTraceFactory(ValueDescriptor[] traceDescriptors, CanonicalConstantMap<IMCStackTrace> traceMap) throws InvalidJfrFileException
InvalidJfrFileException
public IMCStackTrace createObject(long identifier, java.lang.Object o)
IPoolFactory
createObject
in interface IPoolFactory<IMCStackTrace>
identifier
- the identifier that is used to look up the objectprivate IMCStackTrace createTrace(java.lang.Object o)
private static java.util.List<IMCFrame> buildFilteredStackTrace(IMCFrame[] frames)
private IMCFrame createFrame(java.lang.Object[] frameObject)
public ContentType<IMCStackTrace> getContentType()
getContentType
in interface IPoolFactory<IMCStackTrace>