Exporting Valgrind logs

When you run a Valgrind tool on an application through the IDE, the log files generated by the tool are copied to the current workspace when the application terminates. You can then export these log files if you want to share the analysis results or later import them into another workspace or IDE version.

To export Valgrind logs:
  1. Select File > Export > Other > Valgrind Log Files, then click Next.
    Alternatively, if the Analysis Sessions view is open, you can right-click any Valgrind session and choose Export Session. Note that the session must be open.
  2. In the Export window, select the log files to export.
    The log files generated during the session are listed with checkboxes next to each file so you can select or deselect it. There are also Select All and Deselect All buttons.
  3. Under Destination Directory, specify the path for storing the log files.
    You can enter an absolute host path or click Browse to choose a directory from a file selector.
  4. Click Finish.
    The IDE writes the selected log files to the specified directory.

You can then share the log files with other team members so that they may import them into their own workspaces. Or, you can import them into another workspace or IDE version on your host.

The file contents depend on the tool. For Memcheck, the text output is in a flat file format, which each line listing the target process PID followed by one Memcheck message. For Massif, the output contains the command options given to the tool followed by multi-line sections listing the data from the heap snapshots. More information about the output of these tools is given in the Valgrind User Manual.