LibreOffice Module comphelper (master) 1
|
#include <profilezone.hxx>
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) |
Definition at line 23 of file profilezone.hxx.
|
inlineprivate |
Definition at line 33 of file profilezone.hxx.
References sName.
|
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.
|
inline |
Definition at line 61 of file profilezone.hxx.
References sName.
|
inline |
Definition at line 66 of file profilezone.hxx.
|
delete |
|
private |
Definition at line 113 of file traceevent.cxx.
References comphelper::TraceEvent::addRecording(), and m_sName.
|
staticprivate |
Definition at line 138 of file traceevent.cxx.
References comphelper::nProfileZoneNesting.
|
delete |
|
staticprivate |
Definition at line 140 of file traceevent.cxx.
References comphelper::nProfileZoneNesting.
|
private |
Definition at line 25 of file profilezone.hxx.
|
private |
Definition at line 26 of file profilezone.hxx.