MCPcopy Create free account
hub / github.com/Icinga/icinga2 / IncreaseQueryCount

Method IncreaseQueryCount

lib/db_ido/dbconnection.cpp:545–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545void DbConnection::IncreaseQueryCount()
546{
547 double now = Utility::GetTime();
548
549 std::unique_lock<std::mutex> lock(m_StatsMutex);
550 m_QueryStats.InsertValue(now, 1);
551}
552
553int DbConnection::GetQueryCount(RingBuffer::SizeType span)
554{

Callers

nothing calls this directly

Calls 1

InsertValueMethod · 0.80

Tested by

no test coverage detected