Using ReplayEngine

There is very little difference between running TotalView and running ReplayEngine. The first step is enabling ReplayEngine. Do this by selecting Enable Replay Engine in the File > New Program dialog box or in the Process > Startup Parameters dialog box. The following figure the New Program dialog box.
 

If you are using the New Program dialog box, ReplayEngine beings recording instructions when you begin execution. If you are using the Startup Parameters dialog box, ReplayEngine is enabled when you restart your program
You can also enable ReplayEngine by using the TotalView –replay command-line option.
After enabling ReplayEngine, you can now begin controlling your program's execution using the same execution commands you use when ReplayEngine is not enabled. For example, you might set a breakpoint and press the Go button or select a line and press the Run To button.
When you're wish to view the program's state, halt your program, then use the Prev, UnStep, Caller, or BackTo buttons to go to the statement you wish to examine. These four buttons are similar to the Next, Step, Out, and Run To tool bar buttons, differing only in that the Replay buttons go backwards in the program's history. The Debug pull-down menu contains the menubar equivalents to these commands.
While you are in replay mode, notice that the Next, Step, Out, and Run To tool bar buttons are still displayed. This is because pressing these buttons moves you forward in the history.
You'll be able to tell when you're in replay mode because TotalView changes the highlight line from yellow to orange within the Source Pane. .
 

The Process window always shows the last line executed within record mode using the symbol and the yellow highlight line is on the same line as this symbol. When you are in replay mode, this symbol is where ReplayEngine shifts from replay mode to record mode.
The scoping commands at the far left side of the tool bar have no effect in replay mode as the ReplayEngine only supports process width.

 


TotalView Technologies.
http://www.totalviewtech.com
Voice: (508) 652-7700
version 8.6
Copyright © 2008, TotalView Technologies, LLC. All Rights Reserved.
Comments to: documentation@totalviewtechnologies.com