TotalView : ReplayEngine User Guide : About ReplayEngine : Saving and Loading the Execution History
Saving and Loading the Execution History
TotalView can save the current ReplayEngine execution history to a recording file at any time. The saved recording file can then be loaded into TotalView where all the replay options are available to go back and forth within the time boundaries of the saved recording.
To save a recording, either:
*Select the Save button on the ReplayEngine toolbar:, or
*Choose the Save Recording File … menu item in the File menu.
A Save dialog launches. Edit the default filename if you wish, then select a location to save the file. By default, the name of the recording file is replay_<executable-name>_<date>_<time>.recording.
Alternatively, use the CLI dhistory command:
dhistory -save filename
The filename can be either a path or a simple file name, in which case it is saved into the current working directory. If no filename is specified, the recording is saved in the current working directory as replay_pid‑hostname.recording.
The saved recording can be loaded into TotalView as follows:
*At startup, using the same syntax as when opening a core file:
totalview executable recording-file
TotalView recognizes the recording file for what it is and acts appropriately.
*After TotalView is running, using the dattach command with option -c:
dattach executable -c recording-file
*On the Start Page view by selecting Load Core File or Replay Recording File. (See Debug a Core or Replay Recording File.)
Performing any of the above displays the dialog for selecting the record file and application used during the recording session when the recording session was saved.
Again, TotalView recognizes it is dealing with a recording file.