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: 4b3c9325757dfd8f2312e9f1a8decf4431f344ae vs e87b024bfb8dd55e3049b1b6e6ab4e810cf1abc8 Lines: 85.5 % 622 532 17 73 72 460 9 57
Current Date: 2026-11-28 16:48:44 +0900 Functions: 100.0 % 36 36 7 29
Baseline: lcov-20261128-baseline Branches: 62.7 % 550 345 40 165 48 297
Baseline Date: 2026-11-28 16:48:48 +0900 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(1,7] days: 100.0 % 1 1 1
(30,360] days: 80.3 % 147 118 17 12 71 47
(360..) days: 87.1 % 474 413 61 413
Function coverage date bins:
(30,360] days: 100.0 % 4 4 1 3
(360..) days: 100.0 % 32 32 6 26
Branch coverage date bins:
(1,7] days: 50.0 % 2 1 1 1
(30,360] days: 57.3 % 150 86 39 25 47 39
(360..) days: 64.8 % 398 258 140 258

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 927 63.6 % (82 / 129) 43.2 % (57 / 132)
pgstat_register_kind GNC 18 65.0 % (26 / 40) 35.7 % (25 / 70)
pgstat_write_statsfile GNC 810 74.7 % (59 / 79) 64.7 % (44 / 68)
pgstat_get_kind_from_str CBC 97 54.5 % (6 / 11) 42.9 % (6 / 14)
pgstat_build_snapshot GNC 339 100.0 % (39 / 39) 81.2 % (26 / 32)
pgstat_snapshot_fixed CBC 291 92.3 % (12 / 13) 62.5 % (10 / 16)
pgstat_build_snapshot_fixed CBC 6184 100.0 % (18 / 18) 68.8 % (11 / 16)
pgstat_fetch_entry CBC 42109 100.0 % (45 / 45) 83.3 % (25 / 30)
pgstat_before_server_shutdown CBC 815 100.0 % (9 / 9) 60.0 % (6 / 10)
pgstat_discard_stats CBC 216 92.3 % (12 / 13) 75.0 % (12 / 16)
pgstat_flush_pending_entries CBC 46212 100.0 % (23 / 23) 77.8 % (14 / 18)
pgstat_report_stat GNC 403016 97.6 % (41 / 42) 88.9 % (32 / 36)
pgstat_shutdown_hook CBC 25053 92.3 % (12 / 13) 66.7 % (8 / 12)
pgstat_prep_pending_from_entry_ref GNC 2417868 100.0 % (13 / 13) 70.0 % (7 / 10)
pgstat_assert_is_up CBC 6341825 100.0 % (3 / 3) 50.0 % (2 / 4)
pgstat_delete_pending_entry CBC 1242147 100.0 % (12 / 12) 66.7 % (4 / 6)
pgstat_initialize CBC 25053 100.0 % (12 / 12) 87.5 % (7 / 8)
pgstat_is_kind_valid CBC 475791 100.0 % (2 / 2) 75.0 % (3 / 4)
pgstat_prep_snapshot CBC 42142 100.0 % (10 / 10) 87.5 % (7 / 8)
pgstat_reset CBC 50 100.0 % (8 / 8) 75.0 % (3 / 4)
assign_stats_fetch_consistency CBC 2215 100.0 % (4 / 4) 100.0 % (2 / 2)
pgstat_clear_snapshot CBC 444052 100.0 % (12 / 12) 100.0 % (2 / 2)
pgstat_fetch_pending_entry CBC 57 100.0 % (5 / 5) 100.0 % (4 / 4)
pgstat_get_kind_info CBC 13340497 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 93 100.0 % (4 / 4) 100.0 % (2 / 2)
pgstat_init_snapshot_fixed CBC 25053 100.0 % (8 / 8) 100.0 % (6 / 6)
pgstat_reset_after_failure CBC 279 100.0 % (9 / 9) 100.0 % (6 / 6)
pgstat_reset_of_kind CBC 47 100.0 % (7 / 7) 100.0 % (2 / 2)
match_db_entries CBC 14947 100.0 % (2 / 2)
pgstat_force_next_flush CBC 366 100.0 % (3 / 3)
pgstat_prep_pending_entry GNC 2417868 100.0 % (4 / 4)
pgstat_reset_counters CBC 15 100.0 % (4 / 4)
pgstat_restore_stats CBC 927 100.0 % (3 / 3)
read_chunk CBC 488903 100.0 % (2 / 2)
write_chunk CBC 475063 100.0 % (3 / 3)

Generated by: LCOV version 2.0-1