Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

README.md

Outline

How to use gdb

Copy either .gbdinit or .gdbinit-print-opencog to ~/.gbdinit That is, to your home directory.

How to use Valgrind suppressions

Using valgrind with opencog can be tricky, because many spurious messages are created. These can be suppressed with suppression files, like so:

valgrind --suppressions=../scripts/valgrind.guile.suppressions      \
         --suppressions=../scripts/valgrind.python.suppressions     \
         --suppressions=../scripts/valgrind.boost.suppressions      \
         --suppressions=../scripts/valgrind.logger.suppressions     \
         --suppressions=../scripts/valgrind.link-grammar.suppressions  \
    <program_to_debug>

where <program_to_debug> is probably opencog/server/cogserver

Memory leaks: valgrind --leak-check=full

Memory non-leaks: valgrind --leak-check=full --show-leak-kinds=all

Memory profile: valgrind --tool=massif

CPU profile: valgrind --tool=callgrind

then: callgrind_annotate callgrind.out.nnnn

Morty Proxy This is a proxified and sanitized view of the page, visit original site.