MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / endSweepRelation

Method endSweepRelation

src/jrd/tra.cpp:4254–4287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4252
4253
4254void 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
4290void TraceSweepEvent::report(ntrace_process_state_t state)

Callers 1

VIO_sweepFunction · 0.80

Calls 7

setPerfMethod · 0.80
event_sweepMethod · 0.80
getAttachmentMethod · 0.45
getTransactionMethod · 0.45
getValueMethod · 0.45
getPerfMethod · 0.45

Tested by

no test coverage detected