MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ProfilerManager

Method ProfilerManager

src/jrd/ProfilerManager.cpp:366–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364
365
366ProfilerManager::ProfilerManager(thread_db* tdbb)
367 : activePlugins(*tdbb->getAttachment()->att_pool)
368{
369 const auto attachment = tdbb->getAttachment();
370
371 flushTimer = FB_NEW TimerImpl();
372
373 flushTimer->setOnTimer([this, attachment](auto) {
374 FbLocalStatus statusVector;
375 EngineContextHolder innerTdbb(&statusVector, attachment->getInterface(), FB_FUNCTION);
376
377 flush(false);
378 updateFlushTimer(false);
379 });
380}
381
382ProfilerManager::~ProfilerManager()
383{

Callers

nothing calls this directly

Calls 4

TimerImplClass · 0.85
getAttachmentMethod · 0.45
setOnTimerMethod · 0.45
getInterfaceMethod · 0.45

Tested by

no test coverage detected