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

Method onRequestFinish

src/jrd/ProfilerManager.cpp:596–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596void ProfilerManager::onRequestFinish(Request* request, Stats& stats)
597{
598 if (const auto profileRequestId = getRequest(request, 0))
599 {
600 const auto profileStatement = getStatement(request);
601 const auto timestamp = TimeZoneUtil::getCurrentTimeStamp(request->req_attachment->att_current_timezone);
602
603 LogLocalStatus status("Profiler onRequestFinish");
604 currentSession->pluginSession->onRequestFinish(&status, profileStatement->id, profileRequestId,
605 timestamp, &stats);
606
607 currentSession->requests.findAndRemove(profileRequestId);
608 }
609}
610
611void ProfilerManager::cancelSession()
612{

Callers 2

EXE_unwindFunction · 0.45
EXE_looperFunction · 0.45

Calls 2

getStatementFunction · 0.85
findAndRemoveMethod · 0.45

Tested by

no test coverage detected