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

#include <traceevent.hxx>

Inheritance diagram for comphelper::AsyncEvent:
[legend]
Collaboration diagram for comphelper::AsyncEvent:
[legend]

Public Member Functions

 AsyncEvent (const char *sName, const std::map< OUString, OUString > &args=std::map< OUString, OUString >())
 
 ~AsyncEvent ()
 
void finish ()
 

Static Public Member Functions

static std::weak_ptr< AsyncEventcreateWithParent (const char *sName, std::shared_ptr< AsyncEvent > pParent, const std::map< OUString, OUString > &args=std::map< OUString, OUString >())
 
- Static Public Member Functions inherited from comphelper::TraceEvent
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 ()
 

Private Member Functions

 AsyncEvent (const char *sName, int nId, const std::map< OUString, OUString > &args)
 
void generateEnd ()
 

Private Attributes

int m_nId
 
std::vector< std::shared_ptr< AsyncEvent > > m_aChildren
 
std::weak_ptr< AsyncEventm_pParent
 
bool m_bBeginRecorded
 

Static Private Attributes

static int s_nIdCounter = 0
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::NamedEvent
 NamedEvent (const char *sName, const OUString &sArgs)
 
 NamedEvent (const char *sName, const std::map< OUString, OUString > &aArgs)
 
- Protected Member Functions inherited from comphelper::TraceEvent
 TraceEvent (const OUString &sArgs)
 
 TraceEvent (std::map< OUString, OUString > aArgs)
 
- Static Protected Member Functions inherited from comphelper::TraceEvent
static void addRecording (const OUString &sObject)
 
static long long getNow ()
 
static OUString createArgsString (const std::map< OUString, OUString > &args)
 
- Protected Attributes inherited from comphelper::NamedEvent
const char * m_sName
 
- Protected Attributes inherited from comphelper::TraceEvent
const int m_nPid
 
const OUString m_sArgs
 
- Static Protected Attributes inherited from comphelper::TraceEvent
static std::atomic< bool > s_bRecording = (getenv("TRACE_EVENT_RECORDING") != nullptr)
 

Detailed Description

Definition at line 146 of file traceevent.hxx.

Constructor & Destructor Documentation

comphelper::AsyncEvent::AsyncEvent ( const char *  sName,
int  nId,
const std::map< OUString, OUString > &  args 
)
inlineprivate

Definition at line 155 of file traceevent.hxx.

References comphelper::TraceEvent::addRecording(), and m_sName.

comphelper::AsyncEvent::AsyncEvent ( const char *  sName,
const std::map< OUString, OUString > &  args = std::map<OUString, OUString>() 
)
inline

Definition at line 223 of file traceevent.hxx.

References args.

comphelper::AsyncEvent::~AsyncEvent ( )
inline

Definition at line 229 of file traceevent.hxx.

Member Function Documentation

static std::weak_ptr<AsyncEvent> comphelper::AsyncEvent::createWithParent ( const char *  sName,
std::shared_ptr< AsyncEvent pParent,
const std::map< OUString, OUString > &  args = std::map<OUString, OUString>() 
)
inlinestatic

Definition at line 232 of file traceevent.hxx.

References args.

void comphelper::AsyncEvent::finish ( )
inline

Definition at line 247 of file traceevent.hxx.

References comphelper::string::remove().

void comphelper::AsyncEvent::generateEnd ( )
inlineprivate

Definition at line 186 of file traceevent.hxx.

References comphelper::TraceEvent::addRecording(), i, and m_sName.

Member Data Documentation

std::vector<std::shared_ptr<AsyncEvent> > comphelper::AsyncEvent::m_aChildren
private

Definition at line 151 of file traceevent.hxx.

bool comphelper::AsyncEvent::m_bBeginRecorded
private

Definition at line 153 of file traceevent.hxx.

int comphelper::AsyncEvent::m_nId
private

Definition at line 150 of file traceevent.hxx.

std::weak_ptr<AsyncEvent> comphelper::AsyncEvent::m_pParent
private

Definition at line 152 of file traceevent.hxx.

int comphelper::AsyncEvent::s_nIdCounter = 0
staticprivate

Definition at line 149 of file traceevent.hxx.


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