org.eclipse.hyades.loaders.trace
Class TraceMethodBaseLoader
java.lang.Object
org.eclipse.hyades.loaders.hierarchy.IgnoredXMLFragmentLoader
org.eclipse.hyades.loaders.trace.TraceXMLFragmentLoader
org.eclipse.hyades.loaders.trace.TraceMethodBaseLoader
- All Implemented Interfaces:
- XMLFragmentLoader
- Direct Known Subclasses:
- XMLmethodCallLoader, XMLmethodEntryLoader, XMLmethodExitLoader
- public class TraceMethodBaseLoader
- extends TraceXMLFragmentLoader
| Fields inherited from class org.eclipse.hyades.loaders.trace.TraceXMLFragmentLoader |
aClass, ANNOTATION, annotations, CLASS_CLASS1, CLASS_CLASS2, CLASS_ID_REF, classIdRef, createClassObjects, createVirtualObjects, currentAnnotation, currentAnnotationValueEntry, currentAnnotationValueEntryActive, deltaSize, language, LANGUAGE, loadToModel, METHOD_ID_REF, methodIdRef, NAME, OBJ_ID_REF, objectValue, objIdRef, precision, PRECISION, SOURCE_NAME, sourceName, theClass, theHeapDump, theMethod, theObject, theProcess, theThread, THREAD_ID_REF, threadIdRef, time, TIME, UNKNOWN, virtualObject |
|
Method Summary |
void |
addAttribute(java.lang.String name,
java.lang.String value)
|
void |
addCharacters(char[] data,
int offset,
int length)
|
protected void |
addForwardInvocation(TRCMethodInvocation invocation)
|
void |
addInputOutputValues()
|
protected boolean |
checkTicket(TRCThread theThread,
org.eclipse.emf.common.util.EList list,
long ticket)
|
protected void |
convertToTypedObjectValue()
|
protected org.eclipse.emf.ecore.resource.Resource |
createInputOutputContainerResource(TRCInputOutputContainer inputOutputContainer)
|
void |
endChild(java.lang.String name)
|
protected TRCClass |
getExtendedClass(TRCObject anObject,
TRCClass aClass)
|
protected TRCInputOutputContainer |
getInputOutputContainer()
|
void |
initialize(HierarchyContext context,
java.lang.String name)
This is called on start of root element of each fragment |
protected TRCFullMethodInvocation |
resolveInvocation(InvocationContext invContext)
|
protected TRCMethodInvocation |
setInvokerMethod(TRCThread thread,
TRCMethodInvocation invocation)
|
protected void |
setMaxStackDepth(TRCThread theThread)
|
protected void |
setNullInvocationContext()
|
void |
startChild(java.lang.String name)
|
protected void |
updateBaseTime()
|
protected void |
updateBaseTimeIfRequired(TRCMethodInvocation callee,
TRCMethodInvocation caller)
|
protected void |
updateForwardInvokes(TRCMethodInvocation sourceInvocation)
Resolves the links to posible target invocations, invocation that were
received before the invoker (sourceInvocation) |
protected void |
updateTimeStatistics()
|
protected void |
updateTimeStatisticsNew()
|
| Methods inherited from class org.eclipse.hyades.loaders.trace.TraceXMLFragmentLoader |
addAnnotationsIfRequired, addLanguageIfRequired, createDeltaTime, createObject, createObject, createObjectAndClassObject, createTRCFullHeapObject, createTRCFullHeapObject, createTRCFullTraceObject, createTRCFullTraceObject, createTRCHeapObject, createTRCHeapObject, createTRCMethod, createTRCObject, dispatchProcessMode, dynamicProcess, getClassByIdRef, getClassObject, getClassObjectByIdRef, getMethodByIdRef, getObjectByIdRef, getProcess, getThreadByIdRef, getTRCObjectProcess, getZeroTime, processEF, processENI, processES, processHF_EF, processHF_ES, processHF, processHS_ENI, processHS_ES, processHS, updateVirtualObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TICKET
protected static final java.lang.String TICKET
- See Also:
- Constant Field Values
STACK_DEPTH
protected static final java.lang.String STACK_DEPTH
- See Also:
- Constant Field Values
PARAMETER
protected static final java.lang.String PARAMETER
- See Also:
- Constant Field Values
RETURN_VALUE
protected static final java.lang.String RETURN_VALUE
- See Also:
- Constant Field Values
VALUE
protected static final java.lang.String VALUE
- See Also:
- Constant Field Values
VALUE_KIND
protected static final java.lang.String VALUE_KIND
- See Also:
- Constant Field Values
VALUE_POSITION
protected static final java.lang.String VALUE_POSITION
- See Also:
- Constant Field Values
PARAM_INDEX
protected static final java.lang.String PARAM_INDEX
- See Also:
- Constant Field Values
PARAMETER_ID_REF
protected static final java.lang.String PARAMETER_ID_REF
- See Also:
- Constant Field Values
INVOCATION_CONTEXT
protected static final java.lang.String INVOCATION_CONTEXT
- See Also:
- Constant Field Values
AGENT_ID_REF
protected static final java.lang.String AGENT_ID_REF
- See Also:
- Constant Field Values
PROCESS_ID_REF
protected static final java.lang.String PROCESS_ID_REF
- See Also:
- Constant Field Values
NODE_ID_REF
protected static final java.lang.String NODE_ID_REF
- See Also:
- Constant Field Values
SEQUENCE_COUNTER
protected static final java.lang.String SEQUENCE_COUNTER
- See Also:
- Constant Field Values
REMOTE_AGENT_ID_REF
protected static final java.lang.String REMOTE_AGENT_ID_REF
- See Also:
- Constant Field Values
REMOTE_PROCESS_ID_REF
protected static final java.lang.String REMOTE_PROCESS_ID_REF
- See Also:
- Constant Field Values
REMOTE_NODE_ID_REF
protected static final java.lang.String REMOTE_NODE_ID_REF
- See Also:
- Constant Field Values
REMOTE_SEQUENCE_COUNTER
protected static final java.lang.String REMOTE_SEQUENCE_COUNTER
- See Also:
- Constant Field Values
REMOTE_THREAD_ID_REF
protected static final java.lang.String REMOTE_THREAD_ID_REF
- See Also:
- Constant Field Values
REMOTE_TICKET
protected static final java.lang.String REMOTE_TICKET
- See Also:
- Constant Field Values
cs
protected CallStackPerThread cs
invocationPool
protected TraceUtils.InvocationPool invocationPool
invokerClass
protected TRCClass invokerClass
invokerObjectClass
protected TRCClass invokerObjectClass
fullInvocation
protected TRCFullMethodInvocation fullInvocation
fullInvoker
protected TRCFullMethodInvocation fullInvoker
invokerObject
protected TRCFullTraceObject invokerObject
invokerMethod
protected TRCMethod invokerMethod
deltaBaseTime
protected double deltaBaseTime
deltaCumulativeTime
protected double deltaCumulativeTime
lastChildExitTime
protected double lastChildExitTime
previousSiblingExitTime
protected double previousSiblingExitTime
ticket
protected long ticket
stackDepth
protected short stackDepth
inputValues
protected java.util.List inputValues
outputValues
protected java.util.List outputValues
invocationContext
protected InvocationContext invocationContext
activeInvocationContext
protected boolean activeInvocationContext
sequenceCounter
protected long sequenceCounter
REMOTE_INVOCATION_RESOLUTION_LOCK
protected static final java.lang.Object REMOTE_INVOCATION_RESOLUTION_LOCK
remoteInvocationContext
protected boolean remoteInvocationContext
USE_updateStatisticalInfoOld
protected static final java.lang.String USE_updateStatisticalInfoOld
- See Also:
- Constant Field Values
childId
protected int childId
useUpdateStatisticalInfoOld
protected boolean useUpdateStatisticalInfoOld
TraceMethodBaseLoader
public TraceMethodBaseLoader()
updateTimeStatisticsNew
protected void updateTimeStatisticsNew()
updateBaseTime
protected void updateBaseTime()
updateTimeStatistics
protected void updateTimeStatistics()
getExtendedClass
protected TRCClass getExtendedClass(TRCObject anObject,
TRCClass aClass)
setMaxStackDepth
protected void setMaxStackDepth(TRCThread theThread)
- Parameters:
theThread -
startChild
public void startChild(java.lang.String name)
- Specified by:
startChild in interface XMLFragmentLoader- Overrides:
startChild in class TraceXMLFragmentLoader
endChild
public void endChild(java.lang.String name)
- Specified by:
endChild in interface XMLFragmentLoader- Overrides:
endChild in class TraceXMLFragmentLoader
addInputOutputValues
public void addInputOutputValues()
getInputOutputContainer
protected TRCInputOutputContainer getInputOutputContainer()
- Returns:
createInputOutputContainerResource
protected org.eclipse.emf.ecore.resource.Resource createInputOutputContainerResource(TRCInputOutputContainer inputOutputContainer)
- Parameters:
inputOutputContainer -
addAttribute
public void addAttribute(java.lang.String name,
java.lang.String value)
- Specified by:
addAttribute in interface XMLFragmentLoader- Overrides:
addAttribute in class TraceXMLFragmentLoader
convertToTypedObjectValue
protected void convertToTypedObjectValue()
setNullInvocationContext
protected void setNullInvocationContext()
initialize
public void initialize(HierarchyContext context,
java.lang.String name)
- Description copied from interface:
XMLFragmentLoader
- This is called on start of root element of each fragment
- Specified by:
initialize in interface XMLFragmentLoader- Overrides:
initialize in class TraceXMLFragmentLoader
resolveInvocation
protected TRCFullMethodInvocation resolveInvocation(InvocationContext invContext)
checkTicket
protected boolean checkTicket(TRCThread theThread,
org.eclipse.emf.common.util.EList list,
long ticket)
setInvokerMethod
protected TRCMethodInvocation setInvokerMethod(TRCThread thread,
TRCMethodInvocation invocation)
- Returns:
- The invoker's TRCMethodInvocation.
addForwardInvocation
protected void addForwardInvocation(TRCMethodInvocation invocation)
updateForwardInvokes
protected void updateForwardInvokes(TRCMethodInvocation sourceInvocation)
- Resolves the links to posible target invocations, invocation that were
received before the invoker (sourceInvocation)
updateBaseTimeIfRequired
protected void updateBaseTimeIfRequired(TRCMethodInvocation callee,
TRCMethodInvocation caller)
addCharacters
public void addCharacters(char[] data,
int offset,
int length)
- Specified by:
addCharacters in interface XMLFragmentLoader- Overrides:
addCharacters in class TraceXMLFragmentLoader