KDebug::Block

#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-2020 The KDE developers.
Generated on Mon Sep 21 2020 22:59:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.