LCOV - differential code coverage report
Current view: top level - src/backend/utils/activity - pgstat.c (source / functions) Coverage Total Hit UNC UBC GBC GNC CBC ECB DCB
Current: 806555e3000d0b0e0c536c1dc65548128d457d86 vs 1d325ad99cb2dec0e8b45ba36909ee0a497d2a57 Lines: 87.7 % 576 505 3 68 31 38 436 1 20
Current Date: 2025-12-17 08:58:58 +0900 Functions: 100.0 % 35 35 9 26 2
Baseline: lcov-20251217-005640-baseline Branches: 65.1 % 498 324 14 160 31 32 261
Baseline Date: 2025-12-16 12:57:12 -0800 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(1,7] days: 90.5 % 21 19 2 19
(7,30] days: 100.0 % 16 16 16
(30,360] days: 75.0 % 32 24 1 7 3 21
(360..) days: 88.0 % 507 446 61 31 415 1
Function coverage date bins:
(7,30] days: 100.0 % 2 2 2
(30,360] days: 100.0 % 3 3 2 1
(360..) days: 100.0 % 30 30 5 25
Branch coverage date bins:
(1,7] days: 85.7 % 28 24 4 24
(7,30] days: 50.0 % 14 7 7 7
(30,360] days: 52.9 % 34 18 3 13 1 17
(360..) days: 65.2 % 422 275 147 31 244

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 71.4 % (20 / 28) 40.5 % (17 / 42)
pgstat_reset_counters CBC 7 100.0 % (4 / 4)
pgstat_reset CBC 25 100.0 % (8 / 8) 75.0 % (3 / 4)
pgstat_get_stat_snapshot_timestamp CBC 30 100.0 % (8 / 8) 100.0 % (4 / 4)
pgstat_reset_of_kind CBC 30 100.0 % (7 / 7) 100.0 % (2 / 2)
pgstat_fetch_pending_entry CBC 42 100.0 % (5 / 5) 100.0 % (4 / 4)
pgstat_have_entry CBC 80 100.0 % (4 / 4) 100.0 % (2 / 2)
pgstat_get_kind_from_str CBC 83 54.5 % (6 / 11) 42.9 % (6 / 14)
pgstat_discard_stats GNC 172 92.3 % (12 / 13) 75.0 % (12 / 16)
pgstat_snapshot_fixed CBC 221 92.3 % (12 / 13) 62.5 % (10 / 16)
pgstat_reset_after_failure CBC 226 100.0 % (9 / 9) 100.0 % (6 / 6)
pgstat_build_snapshot CBC 242 100.0 % (37 / 37) 80.0 % (24 / 30)
pgstat_force_next_flush CBC 287 100.0 % (3 / 3)
pgstat_write_statsfile GNC 637 82.4 % (56 / 68) 66.7 % (40 / 60)
pgstat_before_server_shutdown CBC 642 100.0 % (9 / 9) 60.0 % (6 / 10)
pgstat_read_statsfile GNC 753 64.1 % (75 / 117) 44.4 % (55 / 124)
pgstat_restore_stats CBC 753 100.0 % (3 / 3)
assign_stats_fetch_consistency CBC 1689 100.0 % (4 / 4) 100.0 % (2 / 2)
pgstat_build_snapshot_fixed CBC 4188 100.0 % (18 / 18) 68.8 % (11 / 16)
match_db_entries GNC 10790 100.0 % (2 / 2)
pgstat_fetch_entry GNC 14437 100.0 % (41 / 41) 80.8 % (21 / 26)
pgstat_prep_snapshot CBC 14463 100.0 % (10 / 10) 87.5 % (7 / 8)
pgstat_init_snapshot_fixed CBC 19586 100.0 % (8 / 8) 100.0 % (6 / 6)
pgstat_initialize CBC 19586 100.0 % (12 / 12) 87.5 % (7 / 8)
pgstat_shutdown_hook CBC 19586 92.3 % (12 / 13) 66.7 % (8 / 12)
pgstat_flush_pending_entries GNC 33742 100.0 % (23 / 23) 77.8 % (14 / 18)
pgstat_report_stat CBC 308313 97.6 % (41 / 42) 88.9 % (32 / 36)
pgstat_clear_snapshot CBC 332229 100.0 % (12 / 12) 100.0 % (2 / 2)
pgstat_write_chunk GNC 387946 100.0 % (3 / 3)
pgstat_is_kind_valid CBC 391135 100.0 % (2 / 2) 75.0 % (3 / 4)
pgstat_read_chunk GNC 402797 100.0 % (2 / 2)
pgstat_delete_pending_entry CBC 895213 100.0 % (12 / 12) 66.7 % (4 / 6)
pgstat_prep_pending_entry CBC 1743577 100.0 % (12 / 12) 75.0 % (6 / 8)
pgstat_assert_is_up CBC 5101867 100.0 % (3 / 3) 50.0 % (2 / 4)
pgstat_get_kind_info CBC 8959272 100.0 % (10 / 10) 100.0 % (8 / 8)

Generated by: LCOV version 2.4-beta