LCOV - differential code coverage report
Current view: top level - src/backend/utils/activity - pgstat.c (source / functions) Coverage Total Hit UNC LBC UBC GBC GNC CBC ECB DUB DCB
Current: bed3ffbf9d952be6c7d739d068cdce44c046dfb7 vs 574581b50ac9c63dd9e4abebb731a3b67e5b50f6 Lines: 87.8 % 580 509 3 3 65 44 465 1 22
Current Date: 2026-05-05 10:23:31 +0900 Functions: 100.0 % 35 35 9 26 3
Baseline: lcov-20260505-025707-baseline Branches: 65.3 % 502 328 14 2 158 1 36 291 8 8
Baseline Date: 2026-05-05 10:27:06 +0900 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(7,30] days: 100.0 % 5 5 5
(30,360] days: 92.7 % 55 51 3 1 38 13
(360..) days: 87.1 % 520 453 3 64 1 452 1
Function coverage date bins:
(7,30] days: 100.0 % 1 1 1
(30,360] days: 100.0 % 2 2 2
(360..) days: 100.0 % 32 32 6 26
Branch coverage date bins:
(7,30] days: 100.0 % 4 4 4
(30,360] days: 72.6 % 62 45 14 3 32 13
(360..) days: 64.0 % 436 279 2 155 1 278

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 887 64.1 % (75 / 117) 44.4 % (55 / 124)
pgstat_write_statsfile GNC 766 82.4 % (56 / 68) 66.7 % (40 / 60)
pgstat_register_kind GNC 6 71.4 % (20 / 28) 40.5 % (17 / 42)
pgstat_get_kind_from_str CBC 98 54.5 % (6 / 11) 42.9 % (6 / 14)
pgstat_discard_stats GNC 190 92.3 % (12 / 13) 75.0 % (12 / 16)
pgstat_report_stat CBC 389328 97.6 % (41 / 42) 88.9 % (32 / 36)
pgstat_shutdown_hook CBC 22978 92.3 % (12 / 13) 66.7 % (8 / 12)
pgstat_snapshot_fixed CBC 278 92.3 % (12 / 13) 62.5 % (10 / 16)
assign_stats_fetch_consistency CBC 2003 100.0 % (4 / 4) 100.0 % (2 / 2)
match_db_entries GNC 15878 100.0 % (2 / 2)
pgstat_assert_is_up CBC 6024157 100.0 % (3 / 3) 50.0 % (2 / 4)
pgstat_before_server_shutdown CBC 771 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 5839 100.0 % (18 / 18) 68.8 % (11 / 16)
pgstat_clear_snapshot CBC 424118 100.0 % (12 / 12) 100.0 % (2 / 2)
pgstat_delete_pending_entry CBC 1095721 100.0 % (12 / 12) 66.7 % (4 / 6)
pgstat_fetch_entry GNC 23742 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 GNC 40252 100.0 % (23 / 23) 77.8 % (14 / 18)
pgstat_force_next_flush CBC 339 100.0 % (3 / 3)
pgstat_get_kind_info CBC 10948821 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 22978 100.0 % (8 / 8) 100.0 % (6 / 6)
pgstat_initialize CBC 22978 100.0 % (12 / 12) 87.5 % (7 / 8)
pgstat_is_kind_valid CBC 494337 100.0 % (2 / 2) 75.0 % (3 / 4)
pgstat_prep_pending_entry CBC 2138465 100.0 % (12 / 12) 75.0 % (6 / 8)
pgstat_prep_snapshot CBC 23772 100.0 % (10 / 10) 87.5 % (7 / 8)
pgstat_read_chunk GNC 507924 100.0 % (2 / 2)
pgstat_reset CBC 43 100.0 % (8 / 8) 75.0 % (3 / 4)
pgstat_reset_after_failure CBC 250 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 887 100.0 % (3 / 3)
pgstat_write_chunk GNC 492460 100.0 % (3 / 3)

Generated by: LCOV version 2.5.0-beta