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

Method GetQueryCount

lib/db_ido/dbconnection.cpp:553–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551}
552
553int DbConnection::GetQueryCount(RingBuffer::SizeType span)
554{
555 std::unique_lock<std::mutex> lock(m_StatsMutex);
556 return m_QueryStats.UpdateAndGetValues(Utility::GetTime(), span);
557}
558
559bool DbConnection::IsIDCacheValid() const
560{

Callers 3

StatsFuncMethod · 0.45
StatsFuncMethod · 0.45
ScriptFuncMethod · 0.45

Calls 1

UpdateAndGetValuesMethod · 0.80

Tested by

no test coverage detected