| 4252 | |
| 4253 | |
| 4254 | void TraceSweepEvent::endSweepRelation(jrd_rel* relation) |
| 4255 | { |
| 4256 | if (!m_need_trace) |
| 4257 | return; |
| 4258 | |
| 4259 | Attachment* att = m_tdbb->getAttachment(); |
| 4260 | jrd_tra* tran = m_tdbb->getTransaction(); |
| 4261 | |
| 4262 | // don't report empty relation |
| 4263 | if (m_base_stats.getValue(RuntimeStatistics::RECORD_SEQ_READS) == |
| 4264 | tran->tra_stats.getValue(RuntimeStatistics::RECORD_SEQ_READS) && |
| 4265 | |
| 4266 | m_base_stats.getValue(RuntimeStatistics::RECORD_BACKOUTS) == |
| 4267 | tran->tra_stats.getValue(RuntimeStatistics::RECORD_BACKOUTS) && |
| 4268 | |
| 4269 | m_base_stats.getValue(RuntimeStatistics::RECORD_PURGES) == |
| 4270 | tran->tra_stats.getValue(RuntimeStatistics::RECORD_PURGES) && |
| 4271 | |
| 4272 | m_base_stats.getValue(RuntimeStatistics::RECORD_EXPUNGES) == |
| 4273 | tran->tra_stats.getValue(RuntimeStatistics::RECORD_EXPUNGES) ) |
| 4274 | { |
| 4275 | return; |
| 4276 | } |
| 4277 | |
| 4278 | TraceRuntimeStats stats(att, &m_base_stats, &tran->tra_stats, |
| 4279 | fb_utils::query_performance_counter() - m_relation_clock, |
| 4280 | 0); |
| 4281 | |
| 4282 | m_sweep_info.setPerf(stats.getPerf()); |
| 4283 | |
| 4284 | TraceConnectionImpl conn(att); |
| 4285 | TraceManager* trace_mgr = att->att_trace_manager; |
| 4286 | trace_mgr->event_sweep(&conn, &m_sweep_info, ITracePlugin::SWEEP_STATE_PROGRESS); |
| 4287 | } |
| 4288 | |
| 4289 | |
| 4290 | void TraceSweepEvent::report(ntrace_process_state_t state) |
no test coverage detected