LCOV - differential code coverage report
Current view: top level - src/backend/utils/activity - pgstat.c (source / functions) Coverage Total Hit UNC LBC UBC GBC GNC CBC DCB
Current: b45a8d7d8b306b43f31a002f1b3f1dddc8defeaf vs 8767b449a3a1e75626dfb08f24da54933171d4c5 Lines: 81.9 % 558 457 2 99 1 2 454 2
Current Date: 2025-10-28 08:26:42 +0900 Functions: 97.1 % 35 34 1 2 32
Baseline: lcov-20251028-005825-baseline Branches: 56.8 % 472 268 4 1 199 3 265
Baseline Date: 2025-10-27 06:37:35 +0000 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(7,30] days: 0.0 % 2 0 2
(30,360] days: 75.7 % 37 28 9 2 26
(360..) days: 82.7 % 519 429 90 1 428
Function coverage date bins:
(30,360] days: 100.0 % 3 3 3
(360..) days: 96.9 % 32 31 1 2 29
Branch coverage date bins:
(7,30] days: 0.0 % 4 0 4
(30,360] days: 57.9 % 38 22 16 22
(360..) days: 57.2 % 430 246 1 183 3 243

Function Name Sort by function name TLA Hit count Sort by function hit count Lines Sort by unexercised lines in function Branches Sort by unexercised branches in function
pgstat_register_kind UNC 0 0.0 % (0 / 28) 0.0 % (0 / 42)
pgstat_reset_counters CBC 7 100.0 % (4 / 4)
pgstat_reset CBC 25 100.0 % (8 / 8) 75.0 % (3 / 4)
pgstat_reset_of_kind CBC 29 100.0 % (7 / 7) 100.0 % (2 / 2)
pgstat_get_stat_snapshot_timestamp CBC 30 100.0 % (8 / 8) 100.0 % (4 / 4)
pgstat_fetch_pending_entry CBC 42 100.0 % (5 / 5) 100.0 % (4 / 4)
pgstat_have_entry CBC 80 100.0 % (4 / 4) 100.0 % (2 / 2)
pgstat_get_kind_from_str CBC 83 54.5 % (6 / 11) 42.9 % (6 / 14)
pgstat_discard_stats CBC 170 88.9 % (8 / 9) 60.0 % (6 / 10)
pgstat_snapshot_fixed CBC 219 76.9 % (10 / 13) 43.8 % (7 / 16)
pgstat_reset_after_failure CBC 223 100.0 % (9 / 9) 100.0 % (6 / 6)
pgstat_build_snapshot CBC 242 100.0 % (37 / 37) 80.0 % (24 / 30)
pgstat_force_next_flush CBC 242 100.0 % (3 / 3)
pgstat_write_statsfile CBC 623 79.0 % (49 / 62) 57.7 % (30 / 52)
pgstat_before_server_shutdown CBC 628 100.0 % (9 / 9) 60.0 % (6 / 10)
pgstat_read_statsfile CBC 737 60.2 % (65 / 108) 40.2 % (45 / 112)
pgstat_restore_stats CBC 737 100.0 % (3 / 3)
assign_stats_fetch_consistency CBC 1661 100.0 % (4 / 4) 100.0 % (2 / 2)
pgstat_build_snapshot_fixed CBC 4101 88.9 % (16 / 18) 62.5 % (10 / 16)
match_db_entries GNC 10741 100.0 % (2 / 2)
pgstat_fetch_entry GNC 14064 100.0 % (41 / 41) 80.8 % (21 / 26)
pgstat_prep_snapshot CBC 14090 100.0 % (10 / 10) 87.5 % (7 / 8)
pgstat_init_snapshot_fixed CBC 19100 75.0 % (6 / 8) 50.0 % (3 / 6)
pgstat_initialize CBC 19100 100.0 % (12 / 12) 87.5 % (7 / 8)
pgstat_shutdown_hook CBC 19100 92.3 % (12 / 13) 66.7 % (8 / 12)
pgstat_flush_pending_entries CBC 32285 100.0 % (24 / 24) 77.8 % (14 / 18)
pgstat_report_stat CBC 299034 97.6 % (41 / 42) 86.1 % (31 / 36)
pgstat_clear_snapshot CBC 322179 100.0 % (12 / 12) 100.0 % (2 / 2)
write_chunk CBC 380624 100.0 % (3 / 3)
pgstat_is_kind_valid CBC 383379 100.0 % (2 / 2) 25.0 % (1 / 4)
read_chunk CBC 394396 100.0 % (2 / 2)
pgstat_delete_pending_entry CBC 869713 100.0 % (12 / 12) 66.7 % (4 / 6)
pgstat_prep_pending_entry CBC 1694889 100.0 % (12 / 12) 75.0 % (6 / 8)
pgstat_assert_is_up CBC 4676194 100.0 % (3 / 3) 50.0 % (2 / 4)
pgstat_get_kind_info CBC 8660661 80.0 % (8 / 10) 62.5 % (5 / 8)

Generated by: LCOV version 2.4-beta