-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Heaptrack
Yannick Goumaz edited this page Apr 28, 2023
·
2 revisions
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.
Install Heaptrack using default package manager:
sudo apt-get install heaptrack heaptrack-gui
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.