KDebug::Block

Search for usage in LXR

#include <kdebug.h>

Public Member Functions

 Block (const char *label, int area=KDE_DEFAULT_DEBUG_AREA)
 

Detailed Description

Use this to label sections of your code.

Since
4.6

Usage: void function() { KDebug::Block myBlock( "section" );

debug() << "output1" << endl; debug() << "output2" << endl; }

Will output:

app: BEGIN: section
app:  [prefix] output1
app:  [prefix] output2
app: END: section - Took 0.1s

Alternatively, use the KDEBUG_BLOCK macro, for automatic naming.

Definition at line 421 of file kdebug.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:01:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.