| 76 | } |
| 77 | |
| 78 | RecordResult EventTracker::recordWithoutSampling(EventInfo&& eventInfo) { |
| 79 | addToQueueCount_.inc(); |
| 80 | if (preQueueCallback_) { |
| 81 | preQueueCallback_(eventInfo); |
| 82 | } |
| 83 | bool addedToQueue = eventInfoQueue_.write(std::move(eventInfo)); |
| 84 | if (!addedToQueue) { |
| 85 | dropCount_.inc(); |
| 86 | } |
| 87 | return addedToQueue ? RecordResult::QUEUED : RecordResult::QUEUE_FULL; |
| 88 | } |
| 89 | |
| 90 | void EventTracker::getStats( |
| 91 | folly::F14FastMap<std::string, uint64_t>& statsMap) const { |
no test coverage detected