on Valgrind, a binary
instrumentation and memory analysis framework. To install
HerbGrind, you must first install a C compiler and
HerbGrind is α software. It is currently known to work only on 64-bit GNU Linux platforms. Support for 32-bit architectures, for OS X, for Clang, and for BSD core tools is still in progress. Please file a bug if HerbGrind does not work on your system.
HerbGrind currently supports 64-bit GNU Linux with GCC; OS X has
known bugs, and other configurations are untested. On Linux,
install GCC, AWK, and Sed using distro-provided packages; on
Debian-derivatives, use the
sudo apt-get install build-essentials
On OS X, the same tools can be installed using Homebrew:
brew install gawk brew install gnu-sed --with-default-names brew install gcc
You will also want the XCode Command-line Tools on OSX, which you can install with:
Once the GNU tools are installed, download the HerbGrind source from GitHub with:
git clone https://github.com/uwplse/herbgrind
If you go to the
you should see a
README.md file, a directory named
a directory named
bench/, and a variety of other directories.
You should also see a
Makefile. Make the binary with:
This command will take approximately ten minutes to run for the first time, since it will download and build a custom Valgrind fork. You may want to set the following Make variables;
amd64-darwinon OS X and
amd64primary and no secondary.
You can also configure without compiling using
Once HerbGrind is installed and working correctly, check out the usage instructions.