| 630 | /// TraceRuntimeStats |
| 631 | |
| 632 | TraceRuntimeStats::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 | |
| 648 | SINT64 TraceRuntimeStats::m_dummy_counts[RuntimeStatistics::TOTAL_ITEMS] = {0}; |
| 649 |
nothing calls this directly
no test coverage detected