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

Method getStats

cachelib/navy/scheduler/ThreadPoolJobQueue.cpp:159–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159JobQueue::Stats JobQueue::getStats() const {
160 Stats stats;
161 std::unique_lock<std::mutex> lock{mutex_};
162 stats.jobsDone = jobsDone_;
163 stats.jobsHighReschedule = jobsHighReschedule_;
164 stats.reschedules = reschedules_;
165 stats.maxQueueLen = maxQueueLen_;
166 maxQueueLen_ = queue_.size();
167 return stats;
168}
169
170} // namespace facebook::cachelib::navy

Callers 2

getCountersMethod · 0.45
checkHealthMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected