摘要 |
<p>A software system is disclosed which facilitates the process of tracing the execution paths of a program, called the client (102). The tracing is performed without requiring modifications to the executable or source code files of the client (102). Trace data collected during the tracing operation is collected according to instructions in a trace options file (120). At run time, the tracing library (125) attaches to the memory image of the client (102). The tracing library (125) is configured to monitor execution of the client (102) and to collect trace data, based on selections in the trace options file (120). The developer (112) then uses a trace analyzer program (106), also having a graphical user interface, to view the trace information. The system can trace multiple threads and multiple processes. The tracing library (125) is preferably configured to run in the same process memory space as the client (102) thereby tracing the execution of the client program without the need for context switches. The tracing system provides a remote mode and an online mode. In remote mode, the developer (112) sends the trace control information (120) to a remote user site together with a small executable image called the agent that enables a remote customer, to generate a trace file (122) that represents execution of the client application at the remote site. In online mode, the developer can generate trace options, run and trace the client (102), and display the trace results in near real-time on the display screen during execution of the client program.</p> |