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

Method setFlushIntervalProcedure

src/jrd/ProfilerManager.cpp:317–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317IExternalResultSet* ProfilerPackage::setFlushIntervalProcedure(ThrowStatusExceptionWrapper* /*status*/,
318 IExternalContext* context, const SetFlushIntervalInput::Type* in, void* out)
319{
320 const auto tdbb = JRD_get_thread_data();
321 const auto attachment = tdbb->getAttachment();
322
323 if (!in->attachmentIdNull && AttNumber(in->attachmentId) != attachment->att_attachment_id)
324 {
325 ProfilerIpc ipc(tdbb, *getDefaultMemoryPool(), in->attachmentId);
326 ipc.send(tdbb, ProfilerIpc::Tag::SET_FLUSH_INTERVAL, in);
327 return nullptr;
328 }
329
330 const auto profilerManager = attachment->getProfilerManager(tdbb);
331
332 profilerManager->setFlushInterval(in->flushInterval);
333
334 return nullptr;
335}
336
337void ProfilerPackage::startSessionFunction(ThrowStatusExceptionWrapper* /*status*/,
338 IExternalContext* context, const StartSessionInput::Type* in, StartSessionOutput::Type* out)

Callers

nothing calls this directly

Calls 6

JRD_get_thread_dataFunction · 0.85
getDefaultMemoryPoolFunction · 0.85
getProfilerManagerMethod · 0.80
setFlushIntervalMethod · 0.80
getAttachmentMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected