TraceFile object
The TraceFile object is used to access the contents
of a trace file created from a PowerBuilder application. Unlike
the Profiling and TraceTree objects, the TraceFile object does not
provide properties and functions to create an analysis model. You
use the TraceFile object in conjunction with the TraceActivityNode,
TraceBeginEnd, TraceError, TraceESQL, TraceGarbageCollect,
TraceLine, TraceObject, TraceRoutine, and TraceUser objects.
The TraceFile object has no events.
Properties
TraceFile property |
Datatype |
Description |
---|---|---|
ApplicationName |
String |
The name of the application used to generate |
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
CollectionTime |
Decimal |
The amount of time (in seconds) taken |
LastError |
ErrorReturn (enumerated) |
The error code for the last error that |
NumberOfActivities |
Long |
The number of activities that exist in |
FileName |
String |
The name of the opened trace file. The |
Functions
TraceFile function |
Datatype returned |
Description |
---|---|---|
String |
Returns the name assigned to the object. |
|
ErrorReturn (enumerated) |
Closes the open trace file. |
|
Integer |
Creates a reference to a context-specific |
|
PowerObject |
Returns a reference to the name of the |
|
TraceActivityNode |
Provides the next activity in the trace |
|
ErrorReturn (enumerated) |
Opens for reading the trace file with |
|
ErrorReturn (enumerated) |
Resets the stream to the beginning of |
|
Object (enumerated) |
Returns the type of the object. |