Exemple #1
0
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();
}
Exemple #2
0
void CProfiler::startCreatedCounter(const char* szCounterName)
{
    CCounter* pCounter = m_mapCounters[szCounterName];
    if ( !pCounter )
        return;

    if ( !pCounter->isWasStarted() )
        LOG(INFO) + szCounterName + " : START";

    pCounter->start();
}