void CProfiler::startCounter(const char* szCounterName) { CCounter* pCounter = m_mapCounters[szCounterName]; if ( !pCounter || !pCounter->isWasStarted() ) LOG(INFO) + szCounterName + " : START"; if ( !pCounter ) m_mapCounters[szCounterName] = new CCounter(); else pCounter->start(); }
void CProfiler::startCreatedCounter(const char* szCounterName) { CCounter* pCounter = m_mapCounters[szCounterName]; if ( !pCounter ) return; if ( !pCounter->isWasStarted() ) LOG(INFO) + szCounterName + " : START"; pCounter->start(); }