VirtualBox

Changeset 11336 in vbox for trunk/src


Ignore:
Timestamp:
Aug 11, 2008 2:36:14 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34467
Message:

Fixes in clienttest.java. Additional debug messages in Perf classes.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/Performance.cpp

    r11180 r11336  
    435435    ElementList::const_iterator it;
    436436
    437     printf("Filter::match(%p, %s)\n", static_cast<const IUnknown*> (object), name.c_str());
     437    LogFlowThisFunc(("Filter::match(%p, %s)\n", static_cast<const IUnknown*> (object), name.c_str()));
    438438    for (it = mElements.begin(); it != mElements.end(); it++)
    439439    {
    440         printf("...matching against(%p, %s)\n", static_cast<const IUnknown*> ((*it).first), (*it).second.c_str());
     440        LogFlowThisFunc(("...matching against(%p, %s)\n", static_cast<const IUnknown*> ((*it).first), (*it).second.c_str()));
    441441        if ((*it).first.isNull() || (*it).first == object)
    442442        {
     
    444444            if ((*it).second == "*" || (*it).second == name)
    445445            {
    446                 printf("...found!\n");
     446                LogFlowThisFunc(("...found!\n"));
    447447                return true;
    448448            }
    449449        }
    450450    }
    451     printf("...no matches!\n");
     451    LogFlowThisFunc(("...no matches!\n"));
    452452    return false;
    453453}
  • trunk/src/VBox/Main/PerformanceImpl.cpp

    r11180 r11336  
    256256        if (filter.match((*it)->getObject(), (*it)->getName()))
    257257        {
     258            LogFlow (("PerformanceCollector::SetupMetrics() setting period to %u,"
     259                      " count to %u for %s\n", aPeriod, aCount, (*it)->getName()));
    258260            (*it)->init(aPeriod, aCount);
     261            LogFlow (("PerformanceCollector::SetupMetrics() enabling %s\n",
     262                      aPeriod, aCount, (*it)->getName()));
    259263            (*it)->enable();
    260264        }
     
    350354        /* @todo We may want to revise the query method to get rid of excessive alloc/memcpy calls. */
    351355        (*it)->query(&values, &length);
     356        LogFlow (("PerformanceCollector::QueryMetricsData() querying metric %s "
     357                  "returned %d values.\n", (*it)->getName(), length));
    352358        memcpy(retData.raw() + flatIndex, values, length * sizeof(*values));
    353359        Bstr tmp((*it)->getName());
Note: See TracChangeset for help on using the changeset viewer.

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