MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ~ProfilerIpc

Method ~ProfilerIpc

src/jrd/ProfilerManager.cpp:796–811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

794}
795
796ProfilerIpc::~ProfilerIpc()
797{
798 Guard guard(this);
799
800 const auto header = sharedMemory->getHeader();
801
802 event_t* evnt = this->isServer ? &header->serverEvent : &header->clientEvent;
803 if (evnt->event_pid)
804 {
805 sharedMemory->eventFini(evnt);
806 evnt->event_pid = 0;
807 }
808
809 if (header->serverEvent.event_pid == 0 && header->clientEvent.event_pid == 0)
810 sharedMemory->removeMapFile();
811}
812
813bool ProfilerIpc::initialize(SharedMemoryBase* sm, bool init)
814{

Callers

nothing calls this directly

Calls 3

eventFiniMethod · 0.80
removeMapFileMethod · 0.80
getHeaderMethod · 0.45

Tested by

no test coverage detected