VirtualBox

Ignore:
Timestamp:
Jun 30, 2017 12:06:06 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116575
Message:

Main: more Log*Func

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/PerformanceImpl.cpp

    r65201 r67726  
    529529
    530530    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    531     Log7(("{%p} " LOG_FN_FMT ": obj=%p name=%s\n", this, __PRETTY_FUNCTION__,
    532           (void *)baseMetric->getObject(), baseMetric->getName()));
     531    Log7Func(("{%p}: obj=%p name=%s\n", this, (void *)baseMetric->getObject(), baseMetric->getName()));
    533532    m.baseMetrics.push_back(baseMetric);
    534533    //LogFlowThisFuncLeave();
     
    542541
    543542    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    544     Log7(("{%p} " LOG_FN_FMT ": obj=%p name=%s\n", this, __PRETTY_FUNCTION__, (void *)metric->getObject(), metric->getName()));
     543    Log7Func(("{%p}: obj=%p name=%s\n", this, (void *)metric->getObject(), metric->getName()));
    545544    m.metrics.push_back(metric);
    546545    //LogFlowThisFuncLeave();
     
    564563            ++n;
    565564        }
    566     Log7(("{%p} " LOG_FN_FMT ": obj=%p, name=%s, marked %d metrics\n",
    567           this, __PRETTY_FUNCTION__, (void *)aObject, name.c_str(), n));
     565    Log7Func(("{%p}: obj=%p, name=%s, marked %d metrics\n", this, (void *)aObject, name.c_str(), n));
    568566    //LogFlowThisFuncLeave();
    569567}
     
    578576
    579577    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    580     Log7(("{%p} " LOG_FN_FMT ": obj=%p, name=%s\n", this, __PRETTY_FUNCTION__, (void *)aObject, name.c_str()));
     578    Log7Func(("{%p}: obj=%p, name=%s\n", this, (void *)aObject, name.c_str()));
    581579    MetricList::iterator it;
    582580    for (it = m.metrics.begin(); it != m.metrics.end();)
     
    666664void PerformanceCollector::samplerCallback(uint64_t iTick)
    667665{
    668     Log4(("{%p} " LOG_FN_FMT ": ENTER\n", this, __PRETTY_FUNCTION__));
     666    Log4Func(("{%p}: ENTER\n", this));
    669667    /* No locking until stage 3!*/
    670668
     
    683681    if (toBeCollected.size() == 0)
    684682    {
    685         Log4(("{%p} " LOG_FN_FMT ": LEAVE (nothing to collect)\n", this, __PRETTY_FUNCTION__));
     683        Log4Func(("{%p}: LEAVE (nothing to collect)\n", this));
    686684        return;
    687685    }
     
    701699     * Those should be destroyed now.
    702700     */
    703     Log7(("{%p} " LOG_FN_FMT ": before remove_if: toBeCollected.size()=%d\n", this, __PRETTY_FUNCTION__, toBeCollected.size()));
     701    Log7Func(("{%p}: before remove_if: toBeCollected.size()=%d\n", this, toBeCollected.size()));
    704702    toBeCollected.remove_if(std::mem_fun(&pm::BaseMetric::isUnregistered));
    705     Log7(("{%p} " LOG_FN_FMT ": after remove_if: toBeCollected.size()=%d\n", this, __PRETTY_FUNCTION__, toBeCollected.size()));
    706     Log7(("{%p} " LOG_FN_FMT ": before remove_if: m.baseMetrics.size()=%d\n", this, __PRETTY_FUNCTION__, m.baseMetrics.size()));
     703    Log7Func(("{%p}: after remove_if: toBeCollected.size()=%d\n", this, toBeCollected.size()));
     704    Log7Func(("{%p}: before remove_if: m.baseMetrics.size()=%d\n", this, m.baseMetrics.size()));
    707705    for (it = m.baseMetrics.begin(); it != m.baseMetrics.end();)
    708706        if ((*it)->isUnregistered())
     
    713711        else
    714712            ++it;
    715     Log7(("{%p} " LOG_FN_FMT ": after remove_if: m.baseMetrics.size()=%d\n", this, __PRETTY_FUNCTION__, m.baseMetrics.size()));
     713    Log7Func(("{%p}: after remove_if: m.baseMetrics.size()=%d\n", this, m.baseMetrics.size()));
    716714    /*
    717715     * Now when we have destroyed all base metrics that could
     
    724722    std::for_each(toBeCollected.begin(), toBeCollected.end(),
    725723                  std::mem_fun(&pm::BaseMetric::collect));
    726     Log4(("{%p} " LOG_FN_FMT ": LEAVE\n", this, __PRETTY_FUNCTION__));
     724    Log4Func(("{%p}: LEAVE\n", this));
    727725}
    728726
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette