From 1f837610facef06c9e835f0421da86113e948069 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Wed, 20 Nov 2013 17:09:11 +0100 Subject: Doc: new Memcheck options Update screenshots. Change-Id: I45e0404e9213be3bae526607d55453cf53d8ea80 Reviewed-by: hjk --- doc/images/analyzer-issues.png | Bin 18296 -> 75473 bytes doc/images/qtcreator-valgrind-memcheck-options.png | Bin 4070 -> 28803 bytes doc/src/analyze/creator-valgrind.qdoc | 19 +++++++++++++++++++ 3 files changed, 19 insertions(+) mode change 100644 => 100755 doc/images/analyzer-issues.png mode change 100644 => 100755 doc/images/qtcreator-valgrind-memcheck-options.png (limited to 'doc') diff --git a/doc/images/analyzer-issues.png b/doc/images/analyzer-issues.png old mode 100644 new mode 100755 index c60f86607c..7bcaeeecf6 Binary files a/doc/images/analyzer-issues.png and b/doc/images/analyzer-issues.png differ diff --git a/doc/images/qtcreator-valgrind-memcheck-options.png b/doc/images/qtcreator-valgrind-memcheck-options.png old mode 100644 new mode 100755 index baca54ecf6..a102b61367 Binary files a/doc/images/qtcreator-valgrind-memcheck-options.png and b/doc/images/qtcreator-valgrind-memcheck-options.png differ diff --git a/doc/src/analyze/creator-valgrind.qdoc b/doc/src/analyze/creator-valgrind.qdoc index b0272c9a3f..7d00ae9792 100644 --- a/doc/src/analyze/creator-valgrind.qdoc +++ b/doc/src/analyze/creator-valgrind.qdoc @@ -97,6 +97,25 @@ uninitialized memory} check box is selected by default. You can deselect it to make Memcheck run faster. + Memcheck searches for memory leaks when the client application finishes. To + view the amount of leaks that occurred, select \gui {Summary Only} in the + \gui {Check for leaks on finish} field. To also view details of each leak, + select \gui Full. + + \section2 Showing Reachable and Indirectly Lost Blocks + + \e Reachable blocks are blocks that are pointed at by a pointer or chain + of pointers and that might have been freed before the application exited. + \e {Indirectly lost} blocks are considered lost because all the blocks that + point to them are themselves lost. For example, all the children of a lost + root node are indirectly lost. + + By default, Memcheck does not report reachable and indirectly lost blocks. + To have them reported, select the \gui {Show reachable and indirectly lost + blocks}. + + \section2 Suppressing Errors + Memcheck detects numerous problems in the system libraries, such as the C library, which come pre-installed with your OS. As you cannot easily fix them, you want to suppress them. Valgrind reads a list of errors to suppress -- cgit v1.2.3