| 620 | } |
| 621 | |
| 622 | void ProfilerManager::finishSession(thread_db* tdbb, bool flushData) |
| 623 | { |
| 624 | if (currentSession) |
| 625 | { |
| 626 | const auto attachment = tdbb->getAttachment(); |
| 627 | const auto timestamp = TimeZoneUtil::getCurrentTimeStamp(attachment->att_current_timezone); |
| 628 | LogLocalStatus status("Profiler finish"); |
| 629 | |
| 630 | currentSession->pluginSession->finish(&status, timestamp); |
| 631 | currentSession = nullptr; |
| 632 | } |
| 633 | |
| 634 | if (flushData) |
| 635 | flush(); |
| 636 | } |
| 637 | |
| 638 | void ProfilerManager::pauseSession(bool flushData) |
| 639 | { |
no test coverage detected