Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
tracer.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef TRACER_H
5#define TRACER_H
6
7#include <QtCore/QtGlobal>
8
9QT_BEGIN_NAMESPACE
10
11class Tracer
12{
13public:
14 Tracer(const char *func) : m_func(func)
15 {
16 qDebug("Entering function %s.", m_func);
17 }
18
19 ~Tracer()
20 {
21 qDebug("Leaving function %s.", m_func);
22 }
23
24private:
25 const char * const m_func;
26};
27
28QT_END_NAMESPACE
29
30// #define TRACING_REQUESTED
31#ifdef TRACING_REQUESTED
32#define TRACE_OBJ Tracer traceObj__(Q_FUNC_INFO);
33#else
34#define TRACE_OBJ
35#endif
36
37#endif // TRACER_H
int main(int argc, char *argv[])
[2]
Definition buffer.cpp:77
RegisterState registerRequest() const
bool removeSearchIndex() const
static bool isNewer(const QHelpEngineCore &newer, const QHelpEngineCore &older)
static void setLastTabPage(QHelpEngineCore &helpEngine, int lastPage)
static void copyConfiguration(const QHelpEngineCore &source, QHelpEngineCore &target)
static void updateLastRegisterTime(QHelpEngineCore &helpEngine)
static int lastTabPage(const QHelpEngineCore &helpEngine)
static void removeInstance()
static ExitStatus preliminarySetup(CmdLineParser *cmd)
Definition main.cpp:241
ExitStatus
Definition main.cpp:235
@ ExitSuccess
Definition main.cpp:236
@ ExitFailure
Definition main.cpp:237
@ NoExit
Definition main.cpp:238
#define TRACE_OBJ
Definition tracer.h:34