| 255 | } |
| 256 | |
| 257 | IExternalResultSet* ProfilerPackage::finishSessionProcedure(ThrowStatusExceptionWrapper* /*status*/, |
| 258 | IExternalContext* context, const FinishSessionInput::Type* in, void* out) |
| 259 | { |
| 260 | const auto tdbb = JRD_get_thread_data(); |
| 261 | const auto attachment = tdbb->getAttachment(); |
| 262 | |
| 263 | if (!in->attachmentIdNull && AttNumber(in->attachmentId) != attachment->att_attachment_id) |
| 264 | { |
| 265 | ProfilerIpc ipc(tdbb, *getDefaultMemoryPool(), in->attachmentId); |
| 266 | ipc.send(tdbb, ProfilerIpc::Tag::FINISH_SESSION, in); |
| 267 | return nullptr; |
| 268 | } |
| 269 | |
| 270 | const auto profilerManager = attachment->getProfilerManager(tdbb); |
| 271 | |
| 272 | profilerManager->finishSession(tdbb, in->flush); |
| 273 | |
| 274 | return nullptr; |
| 275 | } |
| 276 | |
| 277 | IExternalResultSet* ProfilerPackage::pauseSessionProcedure(ThrowStatusExceptionWrapper* /*status*/, |
| 278 | IExternalContext* context, const PauseSessionInput::Type* in, void* out) |
nothing calls this directly
no test coverage detected