| 275 | } |
| 276 | |
| 277 | IExternalResultSet* ProfilerPackage::pauseSessionProcedure(ThrowStatusExceptionWrapper* /*status*/, |
| 278 | IExternalContext* context, const PauseSessionInput::Type* in, void* out) |
| 279 | { |
| 280 | const auto tdbb = JRD_get_thread_data(); |
| 281 | const auto attachment = tdbb->getAttachment(); |
| 282 | |
| 283 | if (!in->attachmentIdNull && AttNumber(in->attachmentId) != attachment->att_attachment_id) |
| 284 | { |
| 285 | ProfilerIpc ipc(tdbb, *getDefaultMemoryPool(), in->attachmentId); |
| 286 | ipc.send(tdbb, ProfilerIpc::Tag::PAUSE_SESSION, in); |
| 287 | return nullptr; |
| 288 | } |
| 289 | |
| 290 | const auto profilerManager = attachment->getProfilerManager(tdbb); |
| 291 | |
| 292 | profilerManager->pauseSession(in->flush); |
| 293 | |
| 294 | return nullptr; |
| 295 | } |
| 296 | |
| 297 | IExternalResultSet* ProfilerPackage::resumeSessionProcedure(ThrowStatusExceptionWrapper* /*status*/, |
| 298 | IExternalContext* context, const ResumeSessionInput::Type* in, void* out) |
nothing calls this directly
no test coverage detected