10#ifndef INCLUDED_COMPHELPER_PROFILEZONE_HXX
11#define INCLUDED_COMPHELPER_PROFILEZONE_HXX
30 static void setNestingLevel(
int nNestingLevel);
31 static int getNestingLevel();
39 m_nCreateTime = getNow();
41 m_nNesting = getNestingLevel();
42 setNestingLevel(getNestingLevel() + 1);
56 ProfileZone(
const char* sName,
const std::map<OUString, OUString>& aArgs)
57 : ProfileZone(
sName, createArgsString(aArgs))
62 : ProfileZone(
sName, OUString())
68 if (m_nCreateTime > 0)
70 setNestingLevel(getNestingLevel() - 1);
72 if (m_nNesting != getNestingLevel())
74 SAL_WARN(
"comphelper.traceevent",
"Incorrect ProfileZone nesting for " <<
m_sName);
ProfileZone(const char *sName, const OUString &sArgs)
void operator=(const ProfileZone &)=delete
ProfileZone(const ProfileZone &)=delete
ProfileZone(const char *sName)
ProfileZone(const char *sName, const std::map< OUString, OUString > &aArgs)
Starts measuring the cost of a C++ scope.
#define COMPHELPER_DLLPUBLIC
#define SAL_WARN(area, stream)