TraceObject class subclasses
StringTable
(a MapCollection)
and uses unique character strings for its indexes.
It gets used to store trace related
information including execution context information that may be helpful to
trace and to debug
(multithreaded) programs.
TRACE is active
(cf. TRACE keyword instruction and
TRACE() built-in-function (BIF)) an
instance of this class gets created for each traced clause and the traced context information gets filled in
(cf. new class method).
| Object | ||
| Methods inherited from the Object class | ||
| Class (Metaclass) | ||
| Methods inherited from the Class class | ||
| StringTable | ||
| Methods inherited from the StringTable class | ||
| TraceObject | ||
|
TraceObject instance gets sent
to the .traceOutput monitor for displaying its string value
(the instance will get the makeString message sent and
as a result returns a string representing it, cf.
makeString and
makeStringImpl below).
The TraceObject class attribute
option
controls globally how the trace line gets formatted.
TraceObject class attribute
collector
can be used to collect all created traceObjects and analyze them
programmatically at a later time.
If you need a real-time full inspection capability, then use the
TraceObject class attribute
collector instead.
For further information about debugging multithreaded programs using
TRACE and this class
see Debugging Multithreaded Programs.
"ATTRIBUTEPOOL"
| a number (identifier), makeStringImpl
prepends it with the letter A
|
"CALLERSTACKFRAME"
| the caller's
StackFrame object information
(created for an invocation entry) stored in a StringTable having the following entries:
|
"HASSCOPELOCK"
| |
"INTERPRETER"
| a number (identifier), makeStringImpl
prepends it with the letter R
|
"INVOCATION"
| a number (identifier), makeStringImpl
prepends it with the letter I
|
"ISGUARDED"
| |
"ISWAITING"
| .true/.false, makeStringImpl
uses a W, if .true (object is waiting for guard lock condition to turn .true),
a blank character else (needs TRACE RESULT or TRACE INTERMEDIATES to be in effect)
|
"NUMBER"
| a sequential number based on
the class attribute counter
(used for the default sorting)
|
"OPTION"
| the option at creation time, e.g. N or S
|
"RECEIVER"
| the receiver object for which the method runs
|
"SCOPELOCKCOUNT"
| a number, makeStringImpl
prepends it with the letter L
|
"STACKFRAME"
| the trace line's
StackFrame object information
stored in a StringTable having the following entries:
|
"THREAD"
| a number (identifier), makeStringImpl
prepends it with the letter T
|
"TIMESTAMP"
| the creation
DateTime
|
"TRACELINE"
| the trace line string used if the class attribute
option
is set to N (normal)
|
"VARIABLE"
| the traced variable (needs TRACE INTERMEDIATES to be in
effect), where further information is available in the StringTable having the following
entries:
|