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

#include <profilezone.hxx>

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

Public Member Functions

 ProfileZone (const char *sName, const std::map< OUString, OUString > &aArgs)
 Starts measuring the cost of a C++ scope. More...
 
 ProfileZone (const char *sName)
 
 ~ProfileZone ()
 
 ProfileZone (const ProfileZone &)=delete
 
void operator= (const ProfileZone &)=delete
 

Private Member Functions

void addRecording ()
 
 ProfileZone (const char *sName, const OUString &sArgs)
 

Private Attributes

long long m_nCreateTime
 
int m_nNesting
 

Static Private Attributes

static int s_nNesting = 0
 

Additional Inherited Members

- 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 ()
 
- 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 23 of file profilezone.hxx.

Constructor & Destructor Documentation

comphelper::ProfileZone::ProfileZone ( const char *  sName,
const OUString &  sArgs 
)
inlineprivate

Definition at line 32 of file profilezone.hxx.

comphelper::ProfileZone::ProfileZone ( const char *  sName,
const std::map< OUString, OUString > &  aArgs 
)
inline

Starts measuring the cost of a C++ scope.

Note that the char pointer is stored as such in the ProfileZone object and used in the destructor, so be sure to pass a pointer that stays valid for the duration of the object's lifetime.

Definition at line 57 of file profilezone.hxx.

comphelper::ProfileZone::ProfileZone ( const char *  sName)
inline

Definition at line 62 of file profilezone.hxx.

comphelper::ProfileZone::~ProfileZone ( )
inline

Definition at line 67 of file profilezone.hxx.

References m_sName, and SAL_WARN.

comphelper::ProfileZone::ProfileZone ( const ProfileZone &  )
delete

Member Function Documentation

void comphelper::ProfileZone::addRecording ( )
private

Definition at line 96 of file traceevent.cxx.

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

void comphelper::ProfileZone::operator= ( const ProfileZone &  )
delete

Member Data Documentation

long long comphelper::ProfileZone::m_nCreateTime
private

Definition at line 27 of file profilezone.hxx.

int comphelper::ProfileZone::m_nNesting
private

Definition at line 28 of file profilezone.hxx.

int comphelper::ProfileZone::s_nNesting = 0
staticprivate

Definition at line 25 of file profilezone.hxx.


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