LCOV - differential code coverage report
Current view: top level - src/backend/utils/activity - pgstat.c (source / functions) Coverage Total Hit LBC UBC GBC GNC CBC DCB
Current: c70b6db34ffeab48beef1fb4ce61bcad3772b8dd vs 06473f5a344df8c9594ead90a609b86f6724cff8 Lines: 82.1 % 554 455 1 98 1 454 1
Current Date: 2025-09-06 07:49:51 +0900 Functions: 97.1 % 35 34 1 1 33
Baseline: lcov-20250907-010129-baseline Branches: 57.5 % 464 267 1 196 1 266
Baseline Date: 2025-09-05 08:21:35 +0100 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: 82.2 % 45 37 8 37
(360..) days: 82.1 % 508 417 1 90 417
Function coverage date bins:
(30,360] days: 100.0 % 8 8 8
(360..) days: 96.3 % 27 26 1 1 25
Branch coverage date bins:
(30,360] days: 61.8 % 34 21 13 21
(360..) days: 57.2 % 430 246 1 183 1 245

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 UBC 0 0.0 % (0 / 26) 0.0 % (0 / 38)
pgstat_reset_counters CBC 7 100.0 % (4 / 4)
pgstat_reset CBC 22 100.0 % (8 / 8) 75.0 % (3 / 4)
pgstat_reset_of_kind CBC 29 100.0 % (7 / 7) 100.0 % (2 / 2)
pgstat_get_stat_snapshot_timestamp CBC 30 100.0 % (8 / 8) 100.0 % (4 / 4)
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 CBC 169 88.9 % (8 / 9) 60.0 % (6 / 10)
pgstat_snapshot_fixed CBC 219 76.9 % (10 / 13) 43.8 % (7 / 16)
pgstat_reset_after_failure CBC 222 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 242 100.0 % (3 / 3)
pgstat_write_statsfile CBC 605 79.0 % (49 / 62) 57.7 % (30 / 52)
pgstat_before_server_shutdown CBC 610 100.0 % (9 / 9) 60.0 % (6 / 10)
pgstat_read_statsfile CBC 718 60.4 % (64 / 106) 40.7 % (44 / 108)
pgstat_restore_stats CBC 718 100.0 % (3 / 3)
assign_stats_fetch_consistency CBC 1624 100.0 % (4 / 4) 100.0 % (2 / 2)
pgstat_build_snapshot_fixed CBC 3993 88.9 % (16 / 18) 62.5 % (10 / 16)
match_db_entries GNC 10676 100.0 % (2 / 2)
pgstat_fetch_entry CBC 13802 100.0 % (41 / 41) 80.8 % (21 / 26)
pgstat_prep_snapshot CBC 13828 100.0 % (10 / 10) 87.5 % (7 / 8)
pgstat_init_snapshot_fixed CBC 18772 75.0 % (6 / 8) 50.0 % (3 / 6)
pgstat_initialize CBC 18772 100.0 % (12 / 12) 87.5 % (7 / 8)
pgstat_shutdown_hook CBC 18772 92.3 % (12 / 13) 66.7 % (8 / 12)
pgstat_flush_pending_entries CBC 31805 100.0 % (24 / 24) 77.8 % (14 / 18)
pgstat_report_stat CBC 296075 95.2 % (40 / 42) 86.1 % (31 / 36)
pgstat_clear_snapshot CBC 318994 100.0 % (12 / 12) 100.0 % (2 / 2)
write_chunk CBC 368712 100.0 % (3 / 3)
pgstat_is_kind_valid CBC 371620 100.0 % (2 / 2) 25.0 % (1 / 4)
read_chunk CBC 382537 100.0 % (2 / 2)
pgstat_delete_pending_entry CBC 856837 100.0 % (12 / 12) 66.7 % (4 / 6)
pgstat_prep_pending_entry CBC 1669647 100.0 % (12 / 12) 75.0 % (6 / 8)
pgstat_assert_is_up CBC 4627840 100.0 % (3 / 3) 50.0 % (2 / 4)
pgstat_get_kind_info CBC 8458193 80.0 % (8 / 10) 62.5 % (5 / 8)

Generated by: LCOV version 2.4-beta