KWin
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
ftrace.h File Reference
#include "effect/globals.h"
#include <QFile>
#include <QMutex>
#include <QMutexLocker>
#include <QObject>
#include <QTextStream>

Go to the source code of this file.

Classes

class  KWin::FTraceLogger
 
class  KWin::FTraceDuration
 

Namespaces

namespace  KWin
 

Macros

#define fTrace(...)
 
#define fTraceDuration(...)    std::unique_ptr<KWin::FTraceDuration> _duration(KWin::FTraceLogger::self()->isEnabled() ? new KWin::FTraceDuration(__VA_ARGS__) : nullptr);
 

Macro Definition Documentation

◆ fTrace

#define fTrace ( ...)
Value:
if (KWin::FTraceLogger::self()->isEnabled()) \
KWin::FTraceLogger::self()->trace(__VA_ARGS__);

Optimised macro, arguments are only copied if tracing is enabled

Definition at line 98 of file ftrace.h.

◆ fTraceDuration

#define fTraceDuration ( ...)     std::unique_ptr<KWin::FTraceDuration> _duration(KWin::FTraceLogger::self()->isEnabled() ? new KWin::FTraceDuration(__VA_ARGS__) : nullptr);

Will insert two markers into the log. Once when called, and the second at the end of the relevant block In GPUVis this will appear as a timed block with begin_ctx and end_ctx markers

Definition at line 106 of file ftrace.h.