LCOV - differential code coverage report
Current view: top level - src/backend/utils/activity - pgstat.c (source / functions) Coverage Total Hit UBC GNC CBC DCB
Current: c70b6db34ffeab48beef1fb4ce61bcad3772b8dd vs 06473f5a344df8c9594ead90a609b86f6724cff8 Lines: 82.3 % 554 456 98 1 455 1
Current Date: 2025-09-06 07:49:51 +0900 Functions: 97.1 % 35 34 1 1 33
Baseline: lcov-20250908-010021-baseline Branches: 57.5 % 464 267 197 267
Baseline Date: 2025-09-05 08:21:35 +0100 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(30,360] days: 82.6 % 46 38 8 1 37
(360..) days: 82.3 % 508 418 90 418
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 184 246

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 CBC 718 60.4 % (64 / 106) 40.7 % (44 / 108)
pgstat_register_kind UBC 0 0.0 % (0 / 26) 0.0 % (0 / 38)
pgstat_write_statsfile CBC 605 79.0 % (49 / 62) 57.7 % (30 / 52)
pgstat_get_kind_from_str CBC 83 54.5 % (6 / 11) 42.9 % (6 / 14)
pgstat_snapshot_fixed CBC 219 76.9 % (10 / 13) 43.8 % (7 / 16)
pgstat_build_snapshot_fixed CBC 3993 88.9 % (16 / 18) 62.5 % (10 / 16)
pgstat_get_kind_info CBC 8459004 80.0 % (8 / 10) 62.5 % (5 / 8)
pgstat_init_snapshot_fixed CBC 18755 75.0 % (6 / 8) 50.0 % (3 / 6)
pgstat_discard_stats CBC 169 88.9 % (8 / 9) 60.0 % (6 / 10)
pgstat_report_stat CBC 296084 97.6 % (41 / 42) 86.1 % (31 / 36)
pgstat_shutdown_hook CBC 18755 92.3 % (12 / 13) 66.7 % (8 / 12)
assign_stats_fetch_consistency CBC 1621 100.0 % (4 / 4) 100.0 % (2 / 2)
match_db_entries GNC 10680 100.0 % (2 / 2)
pgstat_assert_is_up CBC 4612804 100.0 % (3 / 3) 50.0 % (2 / 4)
pgstat_before_server_shutdown CBC 610 100.0 % (9 / 9) 60.0 % (6 / 10)
pgstat_build_snapshot CBC 242 100.0 % (37 / 37) 80.0 % (24 / 30)
pgstat_clear_snapshot CBC 319105 100.0 % (12 / 12) 100.0 % (2 / 2)
pgstat_delete_pending_entry CBC 857306 100.0 % (12 / 12) 66.7 % (4 / 6)
pgstat_fetch_entry CBC 12857 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 CBC 31826 100.0 % (24 / 24) 77.8 % (14 / 18)
pgstat_force_next_flush CBC 242 100.0 % (3 / 3)
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_initialize CBC 18755 100.0 % (12 / 12) 87.5 % (7 / 8)
pgstat_is_kind_valid CBC 371613 100.0 % (2 / 2) 25.0 % (1 / 4)
pgstat_prep_pending_entry CBC 1670658 100.0 % (12 / 12) 75.0 % (6 / 8)
pgstat_prep_snapshot CBC 12883 100.0 % (10 / 10) 87.5 % (7 / 8)
pgstat_reset CBC 22 100.0 % (8 / 8) 75.0 % (3 / 4)
pgstat_reset_after_failure CBC 222 100.0 % (9 / 9) 100.0 % (6 / 6)
pgstat_reset_counters CBC 7 100.0 % (4 / 4)
pgstat_reset_of_kind CBC 29 100.0 % (7 / 7) 100.0 % (2 / 2)
pgstat_restore_stats CBC 718 100.0 % (3 / 3)
read_chunk CBC 382531 100.0 % (2 / 2)
write_chunk CBC 368704 100.0 % (3 / 3)

Generated by: LCOV version 2.4-beta