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: 1a1248818fb8b8b0353c292c632d6a6af77e8209 vs 8e82d6610e7280d7870c0c36ff1c797e3cfb3e09 Lines: 85.9 % 611 525 9 77 23 502 2 13
Current Date: 2026-10-12 11:56:10 +0200 Functions: 100.0 % 36 36 5 31
Baseline: lcov-20261012-baseline Branches: 63.4 % 530 336 24 170 14 322
Baseline Date: 2026-10-12 10:36:06 +0200 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(7,30] days: 46.2 % 13 6 4 3 5 1
(30,360] days: 81.9 % 83 68 5 10 18 50
(360..) days: 87.6 % 515 451 64 451
Function coverage date bins:
(30,360] days: 100.0 % 4 4 1 3
(360..) days: 100.0 % 32 32 4 28
Branch coverage date bins:
(7,30] days: 25.0 % 12 3 6 3 2 1
(30,360] days: 59.3 % 86 51 18 17 12 39
(360..) days: 65.3 % 432 282 150 282

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 GNC 6 66.7 % (24 / 36) 36.7 % (22 / 60)
pgstat_reset_counters CBC 15 100.0 % (4 / 4)
pgstat_get_stat_snapshot_timestamp CBC 40 100.0 % (8 / 8) 100.0 % (4 / 4)
pgstat_reset CBC 45 100.0 % (8 / 8) 75.0 % (3 / 4)
pgstat_reset_of_kind CBC 45 100.0 % (7 / 7) 100.0 % (2 / 2)
pgstat_fetch_pending_entry CBC 57 100.0 % (5 / 5) 100.0 % (4 / 4)
pgstat_have_entry CBC 94 100.0 % (4 / 4) 100.0 % (2 / 2)
pgstat_get_kind_from_str CBC 98 54.5 % (6 / 11) 42.9 % (6 / 14)
pgstat_discard_stats CBC 205 92.3 % (12 / 13) 75.0 % (12 / 16)
pgstat_reset_after_failure CBC 266 100.0 % (9 / 9) 100.0 % (6 / 6)
pgstat_snapshot_fixed CBC 281 92.3 % (12 / 13) 62.5 % (10 / 16)
pgstat_build_snapshot CBC 335 100.0 % (37 / 37) 80.0 % (24 / 30)
pgstat_force_next_flush CBC 350 100.0 % (3 / 3)
pgstat_write_statsfile GNC 784 74.0 % (57 / 77) 64.1 % (41 / 64)
pgstat_before_server_shutdown CBC 789 100.0 % (9 / 9) 60.0 % (6 / 10)
pgstat_read_statsfile GNC 902 64.3 % (81 / 126) 43.8 % (56 / 128)
pgstat_restore_stats CBC 902 100.0 % (3 / 3)
assign_stats_fetch_consistency CBC 2137 100.0 % (4 / 4) 100.0 % (2 / 2)
pgstat_build_snapshot_fixed CBC 5968 100.0 % (18 / 18) 68.8 % (11 / 16)
match_db_entries CBC 14817 100.0 % (2 / 2)
pgstat_init_snapshot_fixed CBC 23945 100.0 % (8 / 8) 100.0 % (6 / 6)
pgstat_initialize CBC 23945 100.0 % (12 / 12) 87.5 % (7 / 8)
pgstat_shutdown_hook CBC 23945 92.3 % (12 / 13) 66.7 % (8 / 12)
pgstat_fetch_entry CBC 39273 100.0 % (45 / 45) 83.3 % (25 / 30)
pgstat_prep_snapshot CBC 39303 100.0 % (10 / 10) 87.5 % (7 / 8)
pgstat_flush_pending_entries CBC 44294 100.0 % (23 / 23) 77.8 % (14 / 18)
pgstat_report_stat CBC 388993 97.6 % (41 / 42) 88.9 % (32 / 36)
pgstat_clear_snapshot CBC 427475 100.0 % (12 / 12) 100.0 % (2 / 2)
write_chunk CBC 470755 100.0 % (3 / 3)
pgstat_is_kind_valid CBC 471437 100.0 % (2 / 2) 75.0 % (3 / 4)
read_chunk CBC 484103 100.0 % (2 / 2)
pgstat_delete_pending_entry CBC 1186480 100.0 % (12 / 12) 66.7 % (4 / 6)
pgstat_prep_pending_entry GNC 2310575 100.0 % (4 / 4)
pgstat_prep_pending_from_entry_ref GNC 2310575 100.0 % (13 / 13) 70.0 % (7 / 10)
pgstat_assert_is_up CBC 6129055 100.0 % (3 / 3) 50.0 % (2 / 4)
pgstat_get_kind_info CBC 11968740 100.0 % (10 / 10) 100.0 % (8 / 8)

Generated by: LCOV version 2.0-1