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: 603a3335f2b60b2c798da5c627b3bb288b92a7bd vs e395fbd32a07557de4ac98088928c1749d4845d8 Lines: 86.3 % 607 524 5 78 18 506 1 9
Current Date: 2026-07-25 17:13:00 -0400 Functions: 100.0 % 36 36 3 33
Baseline: lcov-20260726-baseline Branches: 63.6 % 528 336 18 174 12 324
Baseline Date: 2026-07-25 19:16:42 +0200 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(1,7] days: 100.0 % 14 14 14
(7,30] days: 71.1 % 45 32 5 8 4 28
(30,360] days: 86.2 % 29 25 4 25
(360..) days: 87.3 % 519 453 66 453
Function coverage date bins:
(1,7] days: 100.0 % 1 1 1
(7,30] days: 100.0 % 2 2 2
(30,360] days: 100.0 % 1 1 1
(360..) days: 100.0 % 32 32 2 30
Branch coverage date bins:
(1,7] days: 70.0 % 10 7 3 7
(7,30] days: 38.6 % 44 17 15 12 5 12
(30,360] days: 72.5 % 40 29 11 29
(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
assign_stats_fetch_consistency CBC 2054 100.0 % (4 / 4) 100.0 % (2 / 2)
match_db_entries CBC 16048 100.0 % (2 / 2)
pgstat_assert_is_up CBC 6193877 100.0 % (3 / 3) 50.0 % (2 / 4)
pgstat_before_server_shutdown CBC 748 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 5681 100.0 % (18 / 18) 68.8 % (11 / 16)
pgstat_clear_snapshot CBC 429620 100.0 % (12 / 12) 100.0 % (2 / 2)
pgstat_delete_pending_entry CBC 1171911 100.0 % (12 / 12) 66.7 % (4 / 6)
pgstat_discard_stats CBC 194 92.3 % (12 / 13) 75.0 % (12 / 16)
pgstat_fetch_entry CBC 39996 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 42711 100.0 % (23 / 23) 77.8 % (14 / 18)
pgstat_force_next_flush CBC 341 100.0 % (3 / 3)
pgstat_get_kind_from_str CBC 98 54.5 % (6 / 11) 42.9 % (6 / 14)
pgstat_get_kind_info CBC 11441361 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 22814 100.0 % (8 / 8) 100.0 % (6 / 6)
pgstat_initialize CBC 22814 100.0 % (12 / 12) 87.5 % (7 / 8)
pgstat_is_kind_valid CBC 478536 100.0 % (2 / 2) 75.0 % (3 / 4)
pgstat_prep_pending_entry GNC 2281483 100.0 % (4 / 4)
pgstat_prep_pending_from_entry_ref GNC 2281483 100.0 % (13 / 13) 70.0 % (7 / 10)
pgstat_prep_snapshot CBC 40026 100.0 % (10 / 10) 87.5 % (7 / 8)
pgstat_read_statsfile CBC 863 65.3 % (79 / 121) 44.4 % (55 / 124)
pgstat_register_kind GNC 6 66.7 % (24 / 36) 36.7 % (22 / 60)
pgstat_report_stat CBC 393173 97.6 % (41 / 42) 88.9 % (32 / 36)
pgstat_reset CBC 45 100.0 % (8 / 8) 75.0 % (3 / 4)
pgstat_reset_after_failure CBC 253 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 863 100.0 % (3 / 3)
pgstat_shutdown_hook CBC 22814 92.3 % (12 / 13) 66.7 % (8 / 12)
pgstat_snapshot_fixed CBC 281 92.3 % (12 / 13) 62.5 % (10 / 16)
pgstat_write_statsfile CBC 743 74.4 % (58 / 78) 63.6 % (42 / 66)
read_chunk CBC 493786 100.0 % (2 / 2)
write_chunk CBC 474617 100.0 % (3 / 3)

Generated by: LCOV version 2.0-1