| 315 | } |
| 316 | |
| 317 | IExternalResultSet* 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 | |
| 337 | void ProfilerPackage::startSessionFunction(ThrowStatusExceptionWrapper* /*status*/, |
| 338 | IExternalContext* context, const StartSessionInput::Type* in, StartSessionOutput::Type* out) |
nothing calls this directly
no test coverage detected