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 DUB DCB
Current: 0e5ff9b9b45a657aea12440478dc002e9b01f138 vs 0123ce131fca454009439dfa3b2266d1d40737d7 Lines: 87.7 % 576 505 3 3 65 38 467 1 20
Current Date: 2026-03-14 14:10:32 -0400 Functions: 100.0 % 35 35 9 26 2
Baseline: lcov-20260315-024220-baseline Branches: 65.1 % 498 324 14 2 158 32 292 8 8
Baseline Date: 2026-03-14 15:27:56 +0100 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(30,360] days: 83.9 % 62 52 3 7 38 14
(360..) days: 88.1 % 514 453 3 58 453 1
Function coverage date bins:
(30,360] days: 100.0 % 2 2 2
(360..) days: 100.0 % 33 33 7 26
Branch coverage date bins:
(30,360] days: 62.5 % 72 45 14 13 32 13
(360..) days: 65.5 % 426 279 2 145 279

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 816 64.1 % (75 / 117) 44.4 % (55 / 124)
pgstat_write_statsfile GNC 691 82.4 % (56 / 68) 66.7 % (40 / 60)
pgstat_register_kind GNC 6 71.4 % (20 / 28) 40.5 % (17 / 42)
pgstat_get_kind_from_str CBC 83 54.5 % (6 / 11) 42.9 % (6 / 14)
pgstat_discard_stats GNC 184 92.3 % (12 / 13) 75.0 % (12 / 16)
pgstat_report_stat CBC 315845 97.6 % (41 / 42) 88.9 % (32 / 36)
pgstat_shutdown_hook CBC 21567 92.3 % (12 / 13) 66.7 % (8 / 12)
pgstat_snapshot_fixed CBC 224 92.3 % (12 / 13) 62.5 % (10 / 16)
assign_stats_fetch_consistency CBC 1815 100.0 % (4 / 4) 100.0 % (2 / 2)
match_db_entries GNC 11802 100.0 % (2 / 2)
pgstat_assert_is_up CBC 5271768 100.0 % (3 / 3) 50.0 % (2 / 4)
pgstat_before_server_shutdown CBC 700 100.0 % (9 / 9) 60.0 % (6 / 10)
pgstat_build_snapshot CBC 242 100.0 % (37 / 37) 80.0 % (24 / 30)
pgstat_build_snapshot_fixed CBC 4515 100.0 % (18 / 18) 68.8 % (11 / 16)
pgstat_clear_snapshot CBC 338993 100.0 % (12 / 12) 100.0 % (2 / 2)
pgstat_delete_pending_entry CBC 967827 100.0 % (12 / 12) 66.7 % (4 / 6)
pgstat_fetch_entry GNC 15604 100.0 % (41 / 41) 80.8 % (21 / 26)
pgstat_fetch_pending_entry CBC 42 100.0 % (5 / 5) 100.0 % (4 / 4)
pgstat_flush_pending_entries GNC 36951 100.0 % (23 / 23) 77.8 % (14 / 18)
pgstat_force_next_flush CBC 287 100.0 % (3 / 3)
pgstat_get_kind_info CBC 9709677 100.0 % (10 / 10) 100.0 % (8 / 8)
pgstat_get_stat_snapshot_timestamp CBC 30 100.0 % (8 / 8) 100.0 % (4 / 4)
pgstat_have_entry CBC 80 100.0 % (4 / 4) 100.0 % (2 / 2)
pgstat_init_snapshot_fixed CBC 21568 100.0 % (8 / 8) 100.0 % (6 / 6)
pgstat_initialize CBC 21567 100.0 % (12 / 12) 87.5 % (7 / 8)
pgstat_is_kind_valid CBC 423331 100.0 % (2 / 2) 75.0 % (3 / 4)
pgstat_prep_pending_entry CBC 1886369 100.0 % (12 / 12) 75.0 % (6 / 8)
pgstat_prep_snapshot CBC 15630 100.0 % (10 / 10) 87.5 % (7 / 8)
pgstat_read_chunk GNC 437223 100.0 % (2 / 2)
pgstat_reset CBC 25 100.0 % (8 / 8) 75.0 % (3 / 4)
pgstat_reset_after_failure CBC 238 100.0 % (9 / 9) 100.0 % (6 / 6)
pgstat_reset_counters CBC 13 100.0 % (4 / 4)
pgstat_reset_of_kind CBC 30 100.0 % (7 / 7) 100.0 % (2 / 2)
pgstat_restore_stats CBC 816 100.0 % (3 / 3)
pgstat_write_chunk GNC 418704 100.0 % (3 / 3)

Generated by: LCOV version 2.4-beta