Add Notification Queue Size in verbose logs of EventBase
authorSamrat Bhattacharya <samratb@fb.com>
Mon, 28 Dec 2015 23:03:16 +0000 (15:03 -0800)
committerfacebook-github-bot-0 <folly-bot@fb.com>
Mon, 28 Dec 2015 23:20:23 +0000 (15:20 -0800)
Summary: As above

Reviewed By: alandau

Differential Revision: D2791829

fb-gh-sync-id: 8ae5b875464dfa910b88dc12465879a9420d398c

folly/io/async/EventBase.cpp

index 15a37237ccbffa135d8fb611ca60713ced51189b..abd93dc16ae888cec394b25f4d7b5d678caae7fd 100644 (file)
@@ -374,6 +374,7 @@ bool EventBase::loopBody(int flags) {
         " avgLoopTime: "        << avgLoopTime_.get() <<
         " maxLatencyLoopTime: " << maxLatencyLoopTime_.get() <<
         " maxLatency_: "        << maxLatency_ <<
+        " notificationQueueSize: " << getNotificationQueueSize() <<
         " nothingHandledYet(): "<< nothingHandledYet();
 
       // see if our average loop time has exceeded our limit