LCOV - differential code coverage report
Current view: top level - src/backend/utils/activity - pgstat.c (source / functions) Coverage Total Hit UNC LBC UBC GNC CBC ECB DCB
Current: d36b728949bf4e37ada1cd23e0f2aaa94f609a70 vs 52e118fe2f7e3381bdaa479816a7f72eda2ae517 Lines: 87.8 % 580 509 3 3 65 45 464 1 23
Current Date: 2026-06-29 16:15:13 +0200 Functions: 100.0 % 35 35 10 25 3
Baseline: lcov-20260630-baseline Branches: 65.3 % 502 328 15 2 157 37 291
Baseline Date: 2026-06-29 13:01:57 +0200 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(7,30] days: 100.0 % 1 1 1
(30,360] days: 93.3 % 60 56 3 1 43 13
(360..) days: 87.1 % 519 452 3 64 1 451 1
Function coverage date bins:
(30,360] days: 100.0 % 3 3 3
(360..) days: 100.0 % 32 32 7 25
Branch coverage date bins:
(7,30] days: 50.0 % 2 1 1 1
(30,360] days: 74.2 % 66 49 14 3 36 13
(360..) days: 64.1 % 434 278 2 154 278

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 GNC 858 64.1 % (75 / 117) 44.4 % (55 / 124)
pgstat_register_kind GNC 6 71.4 % (20 / 28) 40.5 % (17 / 42)
pgstat_write_statsfile GNC 738 82.4 % (56 / 68) 66.7 % (40 / 60)
pgstat_get_kind_from_str CBC 98 54.5 % (6 / 11) 42.9 % (6 / 14)
pgstat_build_snapshot CBC 311 100.0 % (37 / 37) 80.0 % (24 / 30)
pgstat_snapshot_fixed CBC 278 92.3 % (12 / 13) 62.5 % (10 / 16)
pgstat_build_snapshot_fixed CBC 5643 100.0 % (18 / 18) 68.8 % (11 / 16)
pgstat_before_server_shutdown CBC 743 100.0 % (9 / 9) 60.0 % (6 / 10)
pgstat_discard_stats GNC 192 92.3 % (12 / 13) 75.0 % (12 / 16)
pgstat_flush_pending_entries GNC 42543 100.0 % (23 / 23) 77.8 % (14 / 18)
pgstat_report_stat CBC 390722 97.6 % (41 / 42) 88.9 % (32 / 36)
pgstat_shutdown_hook GNC 22622 92.3 % (12 / 13) 66.7 % (8 / 12)
pgstat_assert_is_up CBC 6218245 100.0 % (3 / 3) 50.0 % (2 / 4)
pgstat_delete_pending_entry CBC 1169211 100.0 % (12 / 12) 66.7 % (4 / 6)
pgstat_prep_pending_entry CBC 2275947 100.0 % (12 / 12) 75.0 % (6 / 8)
pgstat_initialize CBC 22622 100.0 % (12 / 12) 87.5 % (7 / 8)
pgstat_is_kind_valid CBC 475353 100.0 % (2 / 2) 75.0 % (3 / 4)
pgstat_prep_snapshot CBC 41736 100.0 % (10 / 10) 87.5 % (7 / 8)
pgstat_reset CBC 43 100.0 % (8 / 8) 75.0 % (3 / 4)
assign_stats_fetch_consistency CBC 2043 100.0 % (4 / 4) 100.0 % (2 / 2)
pgstat_clear_snapshot CBC 427307 100.0 % (12 / 12) 100.0 % (2 / 2)
pgstat_fetch_pending_entry CBC 56 100.0 % (5 / 5) 100.0 % (4 / 4)
pgstat_get_kind_info CBC 11398228 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 22623 100.0 % (8 / 8) 100.0 % (6 / 6)
pgstat_reset_after_failure CBC 251 100.0 % (9 / 9) 100.0 % (6 / 6)
pgstat_reset_of_kind CBC 45 100.0 % (7 / 7) 100.0 % (2 / 2)
match_db_entries GNC 15967 100.0 % (2 / 2)
pgstat_force_next_flush CBC 339 100.0 % (3 / 3)
pgstat_read_chunk GNC 490595 100.0 % (2 / 2)
pgstat_reset_counters CBC 15 100.0 % (4 / 4)
pgstat_restore_stats CBC 858 100.0 % (3 / 3)
pgstat_write_chunk GNC 471388 100.0 % (3 / 3)

Generated by: LCOV version 2.0-1