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

Method TraceRuntimeStats

src/jrd/trace/TraceObjects.cpp:632–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630/// TraceRuntimeStats
631
632TraceRuntimeStats::TraceRuntimeStats(Attachment* att, RuntimeStatistics* baseline, RuntimeStatistics* stats,
633 SINT64 clock, SINT64 records_fetched)
634{
635 m_info.pin_time = clock * 1000 / fb_utils::query_performance_frequency();
636 m_info.pin_records_fetched = records_fetched;
637
638 if (baseline && stats)
639 baseline->computeDifference(att, *stats, m_info, m_counts);
640 else
641 {
642 // Report all zero counts for the moment.
643 memset(&m_info, 0, sizeof(m_info));
644 m_info.pin_counters = m_dummy_counts;
645 }
646}
647
648SINT64 TraceRuntimeStats::m_dummy_counts[RuntimeStatistics::TOTAL_ITEMS] = {0};
649

Callers

nothing calls this directly

Calls 2

computeDifferenceMethod · 0.80

Tested by

no test coverage detected