- Timestamp:
- Aug 11, 2008 2:36:14 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 34467
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Performance.cpp
r11180 r11336 435 435 ElementList::const_iterator it; 436 436 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())); 438 438 for (it = mElements.begin(); it != mElements.end(); it++) 439 439 { 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())); 441 441 if ((*it).first.isNull() || (*it).first == object) 442 442 { … … 444 444 if ((*it).second == "*" || (*it).second == name) 445 445 { 446 printf("...found!\n");446 LogFlowThisFunc(("...found!\n")); 447 447 return true; 448 448 } 449 449 } 450 450 } 451 printf("...no matches!\n");451 LogFlowThisFunc(("...no matches!\n")); 452 452 return false; 453 453 } -
trunk/src/VBox/Main/PerformanceImpl.cpp
r11180 r11336 256 256 if (filter.match((*it)->getObject(), (*it)->getName())) 257 257 { 258 LogFlow (("PerformanceCollector::SetupMetrics() setting period to %u," 259 " count to %u for %s\n", aPeriod, aCount, (*it)->getName())); 258 260 (*it)->init(aPeriod, aCount); 261 LogFlow (("PerformanceCollector::SetupMetrics() enabling %s\n", 262 aPeriod, aCount, (*it)->getName())); 259 263 (*it)->enable(); 260 264 } … … 350 354 /* @todo We may want to revise the query method to get rid of excessive alloc/memcpy calls. */ 351 355 (*it)->query(&values, &length); 356 LogFlow (("PerformanceCollector::QueryMetricsData() querying metric %s " 357 "returned %d values.\n", (*it)->getName(), length)); 352 358 memcpy(retData.raw() + flatIndex, values, length * sizeof(*values)); 353 359 Bstr tmp((*it)->getName());
Note:
See TracChangeset
for help on using the changeset viewer.