LibreOffice Module comphelper (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | 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)
 

Static Private Member Functions

static void setNestingLevel (int nNestingLevel)
 
static int getNestingLevel ()
 

Private Attributes

long long m_nCreateTime
 
int m_nNesting
 

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 void setBufferSizeAndCallback (std::size_t bufferSize, void(*bufferFullCallback)())
 
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 (OUString sArgs)
 
 TraceEvent (const 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

◆ ProfileZone() [1/4]

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

Definition at line 33 of file profilezone.hxx.

References sName.

◆ ProfileZone() [2/4]

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 56 of file profilezone.hxx.

References sName.

◆ ProfileZone() [3/4]

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

Definition at line 61 of file profilezone.hxx.

References sName.

◆ ~ProfileZone()

comphelper::ProfileZone::~ProfileZone ( )
inline

Definition at line 66 of file profilezone.hxx.

References m_sName, and SAL_WARN.

◆ ProfileZone() [4/4]

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

Member Function Documentation

◆ addRecording()

void comphelper::ProfileZone::addRecording ( )
private

Definition at line 113 of file traceevent.cxx.

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

◆ getNestingLevel()

int comphelper::ProfileZone::getNestingLevel ( )
staticprivate

Definition at line 138 of file traceevent.cxx.

References comphelper::nProfileZoneNesting.

◆ operator=()

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

◆ setNestingLevel()

void comphelper::ProfileZone::setNestingLevel ( int  nNestingLevel)
staticprivate

Definition at line 140 of file traceevent.cxx.

References comphelper::nProfileZoneNesting.

Member Data Documentation

◆ m_nCreateTime

long long comphelper::ProfileZone::m_nCreateTime
private

Definition at line 25 of file profilezone.hxx.

◆ m_nNesting

int comphelper::ProfileZone::m_nNesting
private

Definition at line 26 of file profilezone.hxx.


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