Syntax 3: For trace files
Description
Goes back to the beginning of the trace file so you can begin
rereading the file contents.
Applies to
TraceFile objects
Syntax
|
1 |
instancename.Reset ( ) |
|
Argument |
Description |
|---|---|
|
instancename |
Instance name of the TraceFile object |
Return value
ErrorReturn. Returns one of the following values:
-
Success! — The function succeeded
-
FileNotOpenError! — The specified trace file has not been
opened
Usage
Use this function to return to the start of the open trace file
and begin rereading the contents of the file. To use the Reset function,
you must have previously opened the trace file with the Open function.
You use the Reset and Open functions as well as the other properties and
functions provided by the TraceFile object to access the contents of a
trace file directly. You use these functions if you want to perform your
own analysis of the tracing data instead of using the available modeling
objects.
Examples
This example returns execution to the start of the open trace file
ltf_file so that the file’s contents can be reread:
|
1 2 3 4 5 6 7 8 |
TraceFile ltf_file string ls_filename ltf_file = CREATE TraceFile ltf_file.Open(ls_filename) ... ltf_file.Reset(ls_filename) ... |
See also