Skip to content

Heaptrack

Yannick Goumaz edited this page Apr 28, 2023 · 2 revisions

Using Heaptrack on Linux

Heaptrack can be used to detect memory management and threading bugs, and profile Webots programs in detail. Its nice GUI allows to easily track memory leaks and memory usage of specific parts of the code.

Installation

Install Heaptrack using default package manager:

sudo apt-get install heaptrack heaptrack-gui

Usage

Note that Webots should be compiled in debug mode before running Heaptrack.

Basic usage example from the main webots folder:

heaptrack bin/webots-bin [optional args]

Once you have completed the actions you wish to register, you can close Webots.

If heaptrack_gui is installed, the interface is started automatically showing critical memory usage parts of the application.

Clone this wiki locally