1.git clone https://github.com/KDE/heaptrack.git
2.cd heaptrack # i.e. the source folder
3.mkdir build
4.cd build
5.cmake -DCMAKE_BUILD_TYPE=Release … # 这一步有啥差错看提示信息,这里是需要下载boost依赖和libunwind依赖
6.make -j$(nproc)
boost 依赖
apt-cache search boost
sudo apt-get install libboost-all-dev //这一步没下载完全则apt-get update
libunwind依赖
sudo apt-get install -y libunwind-dev
apt-get install heaptrack
sudo apt install heaptrack-gui