Changeset 11391 in vbox
- Timestamp:
- Aug 13, 2008 2:48:53 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/log.h
r10646 r11391 373 373 /** bird logging. */ 374 374 RTLOGGRPFLAGS_BIRD = 0x00010000, 375 /** aleksey logging. */ 376 RTLOGGRPFLAGS_ALEKSEY = 0x00020000, 375 377 /** NoName logging. */ 376 RTLOGGRPFLAGS_NONAME = 0x000 20000378 RTLOGGRPFLAGS_NONAME = 0x00040000 377 379 } RTLOGGRPFLAGS; 378 380 … … 554 556 #define LogBird(a) LogIt(LOG_INSTANCE, RTLOGGRPFLAGS_BIRD, LOG_GROUP, a) 555 557 558 /** @def LogAleksey 559 * aleksey logging. 560 */ 561 #define LogAleksey(a) LogIt(LOG_INSTANCE, RTLOGGRPFLAGS_ALEKSEY, LOG_GROUP, a) 562 556 563 /** @def LogNoName 557 564 * NoName logging. -
trunk/src/VBox/Main/Performance.cpp
r11383 r11391 102 102 { 103 103 mLastSampleTaken = nowAt; 104 Log FlowThisFunc (("Collecting data for obj(%p)...\n", (void *)mObject));104 Log4(("{%p} " LOG_FN_FMT ": Collecting data for obj(%p)...\n", this, __PRETTY_FUNCTION__, (void *)mObject)); 105 105 collect(); 106 106 } … … 437 437 ElementList::const_iterator it; 438 438 439 Log FlowThisFunc(("Filter::match(%p, %s)\n", static_cast<const IUnknown*> (object), name.c_str()));439 LogAleksey(("Filter::match(%p, %s)\n", static_cast<const IUnknown*> (object), name.c_str())); 440 440 for (it = mElements.begin(); it != mElements.end(); it++) 441 441 { 442 Log FlowThisFunc(("...matching against(%p, %s)\n", static_cast<const IUnknown*> ((*it).first), (*it).second.c_str()));442 LogAleksey(("...matching against(%p, %s)\n", static_cast<const IUnknown*> ((*it).first), (*it).second.c_str())); 443 443 if ((*it).first.isNull() || (*it).first == object) 444 444 { … … 451 451 } 452 452 } 453 Log FlowThisFunc(("...no matches!\n"));453 LogAleksey(("...no matches!\n")); 454 454 return false; 455 455 } -
trunk/src/VBox/Main/PerformanceImpl.cpp
r11377 r11391 385 385 void PerformanceCollector::registerBaseMetric (pm::BaseMetric *baseMetric) 386 386 { 387 LogFlowThisFuncEnter();387 //LogFlowThisFuncEnter(); 388 388 AutoCaller autoCaller (this); 389 389 if (!SUCCEEDED (autoCaller.rc())) return; 390 390 391 391 AutoWriteLock alock (this); 392 Log FlowThisFunc (("obj=%p name=%s\n", (void *)baseMetric->getObject(), baseMetric->getName()));392 LogAleksey(("{%p} " LOG_FN_FMT ": obj=%p name=%s\n", this, __PRETTY_FUNCTION__, (void *)baseMetric->getObject(), baseMetric->getName())); 393 393 m.baseMetrics.push_back (baseMetric); 394 LogFlowThisFuncLeave();394 //LogFlowThisFuncLeave(); 395 395 } 396 396 397 397 void PerformanceCollector::registerMetric (pm::Metric *metric) 398 398 { 399 LogFlowThisFuncEnter();399 //LogFlowThisFuncEnter(); 400 400 AutoCaller autoCaller (this); 401 401 if (!SUCCEEDED (autoCaller.rc())) return; 402 402 403 403 AutoWriteLock alock (this); 404 Log FlowThisFunc (("obj=%p name=%s\n", (void *)metric->getObject(), metric->getName()));404 LogAleksey(("{%p} " LOG_FN_FMT ": obj=%p name=%s\n", this, __PRETTY_FUNCTION__, (void *)metric->getObject(), metric->getName())); 405 405 m.metrics.push_back (metric); 406 LogFlowThisFuncLeave();406 //LogFlowThisFuncLeave(); 407 407 } 408 408 409 409 void PerformanceCollector::unregisterBaseMetricsFor (const ComPtr <IUnknown> &aObject) 410 410 { 411 LogFlowThisFuncEnter();411 //LogFlowThisFuncEnter(); 412 412 AutoCaller autoCaller (this); 413 413 if (!SUCCEEDED (autoCaller.rc())) return; 414 414 415 415 AutoWriteLock alock (this); 416 Log FlowThisFunc (("before remove_if: m.baseMetrics.size()=%d, obj=%p\n", m.baseMetrics.size(), (void *)aObject));416 LogAleksey(("{%p} " LOG_FN_FMT ": before remove_if: m.baseMetrics.size()=%d\n", this, __PRETTY_FUNCTION__, m.baseMetrics.size())); 417 417 BaseMetricList::iterator it = std::remove_if ( 418 418 m.baseMetrics.begin(), m.baseMetrics.end(), std::bind2nd ( 419 419 std::mem_fun (&pm::BaseMetric::associatedWith), aObject)); 420 420 m.baseMetrics.erase(it, m.baseMetrics.end()); 421 Log FlowThisFunc (("after remove_if: m.baseMetrics.size()=%d\n", m.baseMetrics.size()));422 LogFlowThisFuncLeave();421 LogAleksey(("{%p} " LOG_FN_FMT ": after remove_if: m.baseMetrics.size()=%d\n", this, __PRETTY_FUNCTION__, m.baseMetrics.size())); 422 //LogFlowThisFuncLeave(); 423 423 } 424 424 425 425 void PerformanceCollector::unregisterMetricsFor (const ComPtr <IUnknown> &aObject) 426 426 { 427 LogFlowThisFuncEnter();427 //LogFlowThisFuncEnter(); 428 428 AutoCaller autoCaller (this); 429 429 if (!SUCCEEDED (autoCaller.rc())) return; 430 430 431 431 AutoWriteLock alock (this); 432 Log FlowThisFunc (("obj=%p\n", (void *)aObject));432 LogAleksey(("{%p} " LOG_FN_FMT ": obj=%p\n", this, __PRETTY_FUNCTION__, (void *)aObject)); 433 433 MetricList::iterator it = std::remove_if ( 434 434 m.metrics.begin(), m.metrics.end(), std::bind2nd ( 435 435 std::mem_fun (&pm::Metric::associatedWith), aObject)); 436 436 m.metrics.erase(it, m.metrics.end()); 437 LogFlowThisFuncLeave();437 //LogFlowThisFuncLeave(); 438 438 } 439 439 … … 457 457 void PerformanceCollector::samplerCallback() 458 458 { 459 Log FlowThisFuncEnter();459 Log4(("{%p} " LOG_FN_FMT ": ENTER\n", this, __PRETTY_FUNCTION__)); 460 460 AutoWriteLock alock (this); 461 461 … … 464 464 std::bind2nd (std::mem_fun (&pm::BaseMetric::collectorBeat), 465 465 timestamp)); 466 Log FlowThisFuncLeave();466 Log4(("{%p} " LOG_FN_FMT ": LEAVE\n", this, __PRETTY_FUNCTION__)); 467 467 } 468 468 -
trunk/src/VBox/Runtime/common/log/log.cpp
r10737 r11391 1140 1140 { "b", RTLOGGRPFLAGS_BIRD }, 1141 1141 { "bird", RTLOGGRPFLAGS_BIRD }, 1142 { "aleksey", RTLOGGRPFLAGS_ALEKSEY }, 1142 1143 { "n", RTLOGGRPFLAGS_NONAME }, 1143 1144 { "noname", RTLOGGRPFLAGS_NONAME }
Note:
See TracChangeset
for help on using the changeset viewer.