MCPcopy Create free account
hub / github.com/facebook/CacheLib / recordWithoutSampling

Method recordWithoutSampling

cachelib/common/EventTracker.cpp:78–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78RecordResult 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
90void EventTracker::getStats(
91 folly::F14FastMap<std::string, uint64_t>& statsMap) const {

Callers 2

recordEventMethod · 0.80

Calls 2

incMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected