Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Developer Build

Joy Arulraj edited this page Jun 24, 2016 · 7 revisions

Building Peloton in Debug Mode

To build peloton with more debugging information, you should reconfigure cmake like this and build again :

cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j4

To enable logging information with more verbosity (generated by statements like LOG_TRACE and more verbose levels):

cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j4 CPPFLAGS="-DLOG_LEVEL=LOG_LEVEL_TRACE"

Verbosity Levels

LOG_LEVEL_TRACE All log messages are printed. Note that this will significantly reduce the performance of the engine at runtime.
LOG_LEVEL_DEBUG Only debug messages are printed.
LOG_LEVEL_INFO Only info messages are printed. This is the default debugging setting (i.e. with --enable-debug).
LOG_LEVEL_WARN Only warning messages are printed.
LOG_LEVEL_ERROR Only fatal error messages are printed. This is the default setting.
LOG_LEVEL_DISABLE All output messages from the engine are suppressed.

Clone this wiki locally