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 | Static Private Attributes | 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 void setBufferSizeAndCallback (std::size_t bufferSize, void(*bufferFullCallback)())
 
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 ()
 

Static Private Attributes

static std::size_t s_nBufferSize = 0
 
static void(* s_pBufferFullCallback )() = nullptr
 

Detailed Description

Definition at line 33 of file traceevent.hxx.

Constructor & Destructor Documentation

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

Definition at line 88 of file traceevent.hxx.

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

Definition at line 94 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 54 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 61 of file traceevent.hxx.

References first, and i.

Referenced by addInstantEvent().

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

Definition at line 92 of file traceevent.cxx.

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

Referenced by getRecordingAndClear().

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

Definition at line 54 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 108 of file traceevent.cxx.

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

void comphelper::TraceEvent::setBufferSizeAndCallback ( std::size_t  bufferSize,
void(*)()  bufferFullCallback 
)
static

Definition at line 86 of file traceevent.cxx.

References s_nBufferSize, and s_pBufferFullCallback.

void comphelper::TraceEvent::startRecording ( )
static

Definition at line 78 of file traceevent.cxx.

References s_bRecording.

Referenced by getEventVectorAndClear().

void comphelper::TraceEvent::stopRecording ( )
static

Definition at line 84 of file traceevent.cxx.

References s_bRecording.

Referenced by getEventVectorAndClear().

Member Data Documentation

const int comphelper::TraceEvent::m_nPid
protected

Definition at line 85 of file traceevent.hxx.

const OUString comphelper::TraceEvent::m_sArgs
protected

Definition at line 86 of file traceevent.hxx.

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

Definition at line 50 of file traceevent.hxx.

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

std::size_t comphelper::TraceEvent::s_nBufferSize = 0
staticprivate

Definition at line 46 of file traceevent.hxx.

Referenced by addRecording(), and setBufferSizeAndCallback().

void(* comphelper::TraceEvent::s_pBufferFullCallback)() = nullptr
staticprivate

Definition at line 47 of file traceevent.hxx.

Referenced by addRecording(), and setBufferSizeAndCallback().


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