LCOV - differential code coverage report
Current view: top level - src/backend/utils/activity - pgstat.c (source / functions) Coverage Total Hit UNC LBC UBC GNC CBC ECB DUB DCB
Current: 380a8b2ea024c33a35e7abc8628e7c4f52f9f9f9 vs db5ed03217b9c238703df8b4b286115d6e940488 Lines: 87.6 % 580 508 3 4 65 44 464 1 22
Current Date: 2026-05-29 21:51:00 -0400 Functions: 100.0 % 35 35 9 26 3
Baseline: lcov-20260530-034037-baseline Branches: 64.5 % 502 324 14 6 158 36 288 8 8
Baseline Date: 2026-05-29 14:39:03 -0700 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(30,360] days: 93.3 % 60 56 3 1 43 13
(360..) days: 86.9 % 520 452 4 64 1 451 1
Function coverage date bins:
(30,360] days: 100.0 % 3 3 3
(360..) days: 100.0 % 32 32 6 26
Branch coverage date bins:
(30,360] days: 74.2 % 66 49 14 3 36 13
(360..) days: 63.1 % 436 275 6 155 275

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 892 64.1 % (75 / 117) 44.4 % (55 / 124)
pgstat_register_kind GNC 6 71.4 % (20 / 28) 40.5 % (17 / 42)
pgstat_write_statsfile GNC 769 82.4 % (56 / 68) 66.7 % (40 / 60)
pgstat_get_kind_from_str CBC 98 54.5 % (6 / 11) 42.9 % (6 / 14)
pgstat_flush_pending_entries GNC 40478 95.7 % (22 / 23) 61.1 % (11 / 18)
pgstat_build_snapshot CBC 311 100.0 % (37 / 37) 80.0 % (24 / 30)
pgstat_snapshot_fixed CBC 277 92.3 % (12 / 13) 62.5 % (10 / 16)
pgstat_build_snapshot_fixed CBC 5859 100.0 % (18 / 18) 68.8 % (11 / 16)
pgstat_report_stat CBC 390451 97.6 % (41 / 42) 86.1 % (31 / 36)
pgstat_before_server_shutdown CBC 774 100.0 % (9 / 9) 60.0 % (6 / 10)
pgstat_discard_stats GNC 191 92.3 % (12 / 13) 75.0 % (12 / 16)
pgstat_shutdown_hook CBC 23116 92.3 % (12 / 13) 66.7 % (8 / 12)
pgstat_assert_is_up CBC 6041521 100.0 % (3 / 3) 50.0 % (2 / 4)
pgstat_delete_pending_entry CBC 1101275 100.0 % (12 / 12) 66.7 % (4 / 6)
pgstat_prep_pending_entry CBC 2149415 100.0 % (12 / 12) 75.0 % (6 / 8)
pgstat_initialize CBC 23116 100.0 % (12 / 12) 87.5 % (7 / 8)
pgstat_is_kind_valid CBC 497014 100.0 % (2 / 2) 75.0 % (3 / 4)
pgstat_prep_snapshot CBC 23163 100.0 % (10 / 10) 87.5 % (7 / 8)
pgstat_reset CBC 43 100.0 % (8 / 8) 75.0 % (3 / 4)
assign_stats_fetch_consistency CBC 2015 100.0 % (4 / 4) 100.0 % (2 / 2)
pgstat_clear_snapshot CBC 426133 100.0 % (12 / 12) 100.0 % (2 / 2)
pgstat_fetch_pending_entry CBC 56 100.0 % (5 / 5) 100.0 % (4 / 4)
pgstat_get_kind_info CBC 11006000 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 23116 100.0 % (8 / 8) 100.0 % (6 / 6)
pgstat_reset_after_failure CBC 251 100.0 % (9 / 9) 100.0 % (6 / 6)
pgstat_reset_of_kind CBC 45 100.0 % (7 / 7) 100.0 % (2 / 2)
match_db_entries GNC 16060 100.0 % (2 / 2)
pgstat_force_next_flush CBC 339 100.0 % (3 / 3)
pgstat_read_chunk GNC 511827 100.0 % (2 / 2)
pgstat_reset_counters CBC 15 100.0 % (4 / 4)
pgstat_restore_stats CBC 892 100.0 % (3 / 3)
pgstat_write_chunk GNC 493967 100.0 % (3 / 3)

Generated by: LCOV version 2.5.0-beta