KWin
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | Properties | List of all members
KWin::FTraceLogger Class Reference

#include <ftrace.h>

Inheritance diagram for KWin::FTraceLogger:

Public Slots

Q_SCRIPTABLE void setEnabled (bool enabled)
 

Signals

void enabledChanged ()
 

Public Member Functions

bool isEnabled () const
 
template<typename... Args>
void trace (Args... args)
 

Properties

bool isEnabled
 

Detailed Description

FTraceLogger is a singleton utility for writing log messages using ftrace

Usage: Either: Set the KWIN_PERF_FTRACE environment variable before starting the application Calling on DBus /FTrace org.kde.kwin.FTrace.setEnabled true After having created the ftrace mount

Definition at line 30 of file ftrace.h.

Member Function Documentation

◆ enabledChanged

void KWin::FTraceLogger::enabledChanged ( )
signal

◆ isEnabled()

bool KWin::FTraceLogger::isEnabled ( ) const

Enabled through DBus and logging has started

Definition at line 35 of file ftrace.cpp.

◆ setEnabled

void KWin::FTraceLogger::setEnabled ( bool enabled)
slot

Definition at line 40 of file ftrace.cpp.

◆ trace()

template<typename... Args>
void KWin::FTraceLogger::trace ( Args... args)
inline

Main log function Takes any number of arguments that can be written into QTextStream

Definition at line 47 of file ftrace.h.

Property Documentation

◆ isEnabled

bool KWin::FTraceLogger::isEnabled
read

Definition at line 34 of file ftrace.h.


The documentation for this class was generated from the following files: