< Guides
Profiling Bongo
In order to find out what's going on inside Bongo when stuff is going slow, the best tool to use is a profiler. This is a quick guide to using the "gprof" profiler with Bongo.
gprof is part of GNU binutils and will be installed on most developer systems.
A profiling build
You will need to compile Bongo from source to profile, so you'll need to know how to do that or follow this guide to compile from source.
Additionally, you need to set two flags before calling autogen.sh (if you get your source from SVN) or configure (if you're using a tarball):
CFLAGS=-pg LDFLAGS=-pg ./autogen.sh [usual flags here]
With all of Bongo compiled and linked this way, we now have a profiling build. The way that this works is that a gmon.out file is created in the working directory when any agent shutdowns down normally.
