LibreOffice Module comphelper (master)  1
Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Static Private Member Functions | List of all members
comphelper::TraceEvent Class Reference

#include <traceevent.hxx>

Inheritance diagram for comphelper::TraceEvent:
[legend]

Static Public Member Functions

static void addInstantEvent (const char *sName, const std::map< OUString, OUString > &args=std::map< OUString, OUString >())
 
static void startRecording ()
 
static void stopRecording ()
 
static std::vector< OUString > getEventVectorAndClear ()
 
static css::uno::Sequence< OUString > getRecordingAndClear ()
 

Protected Member Functions

 TraceEvent (const OUString &sArgs)
 
 TraceEvent (std::map< OUString, OUString > aArgs)
 

Static Protected Member Functions

static void addRecording (const OUString &sObject)
 
static long long getNow ()
 
static OUString createArgsString (const std::map< OUString, OUString > &args)
 

Protected Attributes

const int m_nPid
 
const OUString m_sArgs
 

Static Protected Attributes

static std::atomic< bool > s_bRecording = (getenv("TRACE_EVENT_RECORDING") != nullptr)
 

Static Private Member Functions

static int getPid ()
 

Detailed Description

Definition at line 33 of file traceevent.hxx.

Constructor & Destructor Documentation

comphelper::TraceEvent::TraceEvent ( const OUString &  sArgs)
inlineprotected

Definition at line 85 of file traceevent.hxx.

comphelper::TraceEvent::TraceEvent ( std::map< OUString, OUString >  aArgs)
inlineprotected

Definition at line 91 of file traceevent.hxx.

Member Function Documentation

void comphelper::TraceEvent::addInstantEvent ( const char *  sName,
const std::map< OUString, OUString > &  args = std::map<OUString, OUString>() 
)
static

Definition at line 43 of file traceevent.cxx.

References addRecording(), createArgsString(), and getNow().

void comphelper::TraceEvent::addRecording ( const OUString &  sObject)
staticprotected
static OUString comphelper::TraceEvent::createArgsString ( const std::map< OUString, OUString > &  args)
inlinestaticprotected

Definition at line 58 of file traceevent.hxx.

References first, and i.

Referenced by addInstantEvent().

std::vector< OUString > comphelper::TraceEvent::getEventVectorAndClear ( )
static

Definition at line 75 of file traceevent.cxx.

References s_bRecording, startRecording(), and stopRecording().

Referenced by getRecordingAndClear().

static long long comphelper::TraceEvent::getNow ( )
inlinestaticprotected

Definition at line 51 of file traceevent.hxx.

Referenced by addInstantEvent().

static int comphelper::TraceEvent::getPid ( )
inlinestaticprivate

Definition at line 36 of file traceevent.hxx.

css::uno::Sequence< OUString > comphelper::TraceEvent::getRecordingAndClear ( )
static

Definition at line 91 of file traceevent.cxx.

References comphelper::containerToSequence(), and getEventVectorAndClear().

void comphelper::TraceEvent::startRecording ( )
static

Definition at line 67 of file traceevent.cxx.

References s_bRecording.

Referenced by getEventVectorAndClear().

void comphelper::TraceEvent::stopRecording ( )
static

Definition at line 73 of file traceevent.cxx.

References s_bRecording.

Referenced by getEventVectorAndClear().

Member Data Documentation

const int comphelper::TraceEvent::m_nPid
protected

Definition at line 82 of file traceevent.hxx.

const OUString comphelper::TraceEvent::m_sArgs
protected

Definition at line 83 of file traceevent.hxx.

std::atomic< bool > comphelper::TraceEvent::s_bRecording = (getenv("TRACE_EVENT_RECORDING") != nullptr)
staticprotected

Definition at line 47 of file traceevent.hxx.

Referenced by getEventVectorAndClear(), startRecording(), and stopRecording().


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