LCOV - differential code coverage report
Current view: top level - src/backend/utils/activity - pgstat.c (source / functions) Coverage Total Hit UNC UBC GNC CBC DUB DCB
Current: ba12a202ce1b5581dc0ed149cf3f637d7897ad5d vs 2866d8c7dbfc9d882a7d80fef93fbbe763709932 Lines: 86.3 % 607 524 5 78 18 506 1 9
Current Date: 2026-08-27 14:31:44 +0300 Functions: 100.0 % 36 36 3 33
Baseline: lcov-20260827-baseline Branches: 63.6 % 528 336 18 174 12 324
Baseline Date: 2026-08-27 14:31:58 +0300 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(30,360] days: 80.5 % 87 70 5 12 18 52
(360..) days: 87.3 % 520 454 66 454
Function coverage date bins:
(30,360] days: 100.0 % 4 4 1 3
(360..) days: 100.0 % 32 32 2 30
Branch coverage date bins:
(30,360] days: 56.4 % 94 53 18 23 12 41
(360..) days: 65.2 % 434 283 151 283

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_read_statsfile CBC 870 65.3 % (79 / 121) 44.4 % (55 / 124)
pgstat_write_statsfile CBC 750 74.4 % (58 / 78) 63.6 % (42 / 66)
pgstat_register_kind GNC 6 66.7 % (24 / 36) 36.7 % (22 / 60)
pgstat_get_kind_from_str CBC 98 54.5 % (6 / 11) 42.9 % (6 / 14)
pgstat_discard_stats CBC 199 92.3 % (12 / 13) 75.0 % (12 / 16)
pgstat_report_stat CBC 391497 97.6 % (41 / 42) 88.9 % (32 / 36)
pgstat_shutdown_hook CBC 23321 92.3 % (12 / 13) 66.7 % (8 / 12)
pgstat_snapshot_fixed CBC 284 92.3 % (12 / 13) 62.5 % (10 / 16)
assign_stats_fetch_consistency CBC 2072 100.0 % (4 / 4) 100.0 % (2 / 2)
match_db_entries CBC 15905 100.0 % (2 / 2)
pgstat_assert_is_up CBC 6162846 100.0 % (3 / 3) 50.0 % (2 / 4)
pgstat_before_server_shutdown CBC 755 100.0 % (9 / 9) 60.0 % (6 / 10)
pgstat_build_snapshot CBC 311 100.0 % (37 / 37) 80.0 % (24 / 30)
pgstat_build_snapshot_fixed CBC 5733 100.0 % (18 / 18) 68.8 % (11 / 16)
pgstat_clear_snapshot CBC 431443 100.0 % (12 / 12) 100.0 % (2 / 2)
pgstat_delete_pending_entry CBC 1182245 100.0 % (12 / 12) 66.7 % (4 / 6)
pgstat_fetch_entry CBC 41800 100.0 % (45 / 45) 83.3 % (25 / 30)
pgstat_fetch_pending_entry CBC 56 100.0 % (5 / 5) 100.0 % (4 / 4)
pgstat_flush_pending_entries CBC 43518 100.0 % (23 / 23) 77.8 % (14 / 18)
pgstat_force_next_flush CBC 342 100.0 % (3 / 3)
pgstat_get_kind_info CBC 11572442 100.0 % (10 / 10) 100.0 % (8 / 8)
pgstat_get_stat_snapshot_timestamp CBC 40 100.0 % (8 / 8) 100.0 % (4 / 4)
pgstat_have_entry CBC 94 100.0 % (4 / 4) 100.0 % (2 / 2)
pgstat_init_snapshot_fixed CBC 23322 100.0 % (8 / 8) 100.0 % (6 / 6)
pgstat_initialize CBC 23321 100.0 % (12 / 12) 87.5 % (7 / 8)
pgstat_is_kind_valid CBC 483904 100.0 % (2 / 2) 75.0 % (3 / 4)
pgstat_prep_pending_entry GNC 2302175 100.0 % (4 / 4)
pgstat_prep_pending_from_entry_ref GNC 2302175 100.0 % (13 / 13) 70.0 % (7 / 10)
pgstat_prep_snapshot CBC 41830 100.0 % (10 / 10) 87.5 % (7 / 8)
pgstat_reset CBC 45 100.0 % (8 / 8) 75.0 % (3 / 4)
pgstat_reset_after_failure CBC 257 100.0 % (9 / 9) 100.0 % (6 / 6)
pgstat_reset_counters CBC 15 100.0 % (4 / 4)
pgstat_reset_of_kind CBC 45 100.0 % (7 / 7) 100.0 % (2 / 2)
pgstat_restore_stats CBC 870 100.0 % (3 / 3)
read_chunk CBC 499686 100.0 % (2 / 2)
write_chunk CBC 479574 100.0 % (3 / 3)

Generated by: LCOV version 2.0-1