dmalloc
1.1、dmalloc简介
short for:debug malloc
是什么 ?:has been designed as a drop in replacement for the system's malloc, realloc, calloc, free and other memory management routines while providing powerful debugging facilities configurable at runtime.
开发语言:C
官方主页:https://dmalloc.com
源码仓库:https://github.com/j256/dmalloc
1.2、通过包管理器安装dmalloc
操作系统包管理器安装命令
Allvcpkg
vcpkg install dmalloc
vcpkg install dmalloc:x64-osx
vcpkg install dmalloc:x64-linux
vcpkg install dmalloc:x64-windows
macOSHomeBrewbrew install dmalloc
GNU/LinuxHomeBrewbrew install dmalloc
aptsudo apt-get install -y libdmalloc1 libdmalloc1-dev
CentOSyumsudo yum install -y dmalloc dmalloc-devel
dnfsudo dnf install -y dmalloc dmalloc-devel
openSUSEzyppersudo zypper install -y dmalloc libdmalloc-devel
Alpine Linuxapksudo apk add dmalloc dmalloc-dev

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm dmalloc
Gentoo LinuxPortagesudo emerge dmalloc
1.3、通过编译源码安装dmalloc
1.4、dmalloc中包含的命令
1.5、dmalloc中包含的头文件
1.6、dmalloc中包含的库文件
  • libdmalloc.{a | so | dylib}
  • libdmallocth.{a | so | dylib}
  • libdmallocthcxx.{a | so | dylib}
  • libdmallocxx.{a | so | dylib}