LCOV - code coverage report
Current view: top level - src/backend/access/transam - xlog.c (source / functions) Hit Total Coverage
Test: PostgreSQL 19devel Lines: 2219 2488 89.2 %
Date: 2026-01-28 16:17:41 Functions: 120 123 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
AdvanceXLInsertBuffer 5021552
BootStrapXLOG 102
CalculateCheckpointSegments 16396
CheckPointGuts 3566
CheckRequiredParameterValues 526
CheckXLogRemoved 251016
CleanupAfterArchiveRecovery 110
CleanupBackupHistory 308
CopyXLogRecordToWAL 30768874
CreateCheckPoint 3178
CreateEndOfRecoveryRecord 96
CreateOverwriteContrecordRecord 20
CreateRestartPoint 1208
DataChecksumsEnabled 19960738
GetActiveWalLevelOnStandby 0
GetDefaultCharSignedness 6
GetFakeLSNForUnloggedRel 66
GetFlushRecPtr 487076
GetFullPageWriteInfo 31082640
GetInsertRecPtr 15706
GetLastImportantRecPtr 3288
GetLastSegSwitchData 0
GetMockAuthenticationNonce 2
GetOldestRestartPoint 824
GetRecoveryState 51128
GetRedoRecPtr 604530
GetSystemIdentifier 2930
GetWALAvailability 1280
GetWALInsertionTimeLine 234874
GetWALInsertionTimeLineIfSet 2
GetXLogBuffer 35844178
GetXLogInsertRecPtr 4044
GetXLogWriteRecPtr 12720
InitControlFile 102
InitializeWalConsistencyChecking 1970
InstallXLogFileSegment 5928
IsInstallXLogFileSegmentActive 0
KeepLogSeg 4782
LocalProcessControlFile 1990
LocalSetXLogInsertAllowed 1920
LogCheckpointEnd 3566
LogCheckpointStart 2970
PerformRecoveryXLogAction 326
PreallocXlogFiles 4114
ReachedEndOfBackup 160
ReadControlFile 2092
RecoveryInProgress 161267272
RecoveryRestartPoint 1470
RemoveNonParentXlogFiles 132
RemoveOldXlogFiles 3566
RemoveTempXlogFiles 374
RemoveXlogFile 5106
RequestXLogSwitch 1592
ReserveXLogInsertLocation 30767396
ReserveXLogSwitch 1592
ResetInstallXLogFileSegmentActive 2310
SetInstallXLogFileSegmentActive 2362
SetWalWriterSleeping 1060
ShutdownXLOG 1372
StartupXLOG 1992
SwitchIntoArchiveRecovery 6
UpdateCheckPointDistanceEstimate 3566
UpdateControlFile 18942
UpdateFullPageWrites 3138
UpdateLastRemovedPtr 5074
UpdateMinRecoveryPoint 221442
ValidateXLOGDirectoryStructure 1992
WALInsertLockAcquire 30781574
WALInsertLockAcquireExclusive 8908
WALInsertLockRelease 30790482
WALInsertLockUpdateInsertingAt 5011470
WALReadFromBuffers 206254
WaitXLogInsertionsToFinish 4723120
WriteControlFile 102
XLOGChooseNumBuffers 2276
XLOGShmemInit 2280
XLOGShmemSize 6534
XLOGfileslop 3566
XLogBackgroundFlush 37738
XLogBytePosToEndRecPtr 31715606
XLogBytePosToRecPtr 61543106
XLogCheckpointNeeded 10148
XLogFileClose 13170
XLogFileCopy 90
XLogFileInit 29602
XLogFileInitInternal 30082
XLogFileOpen 346
XLogFlush 1418462
XLogGetLastRemovedSegno 2468
XLogGetOldestSegno 14
XLogGetReplicationSlotMinimumLSN 4796
XLogInitNewTimeline 110
XLogInsertAllowed 81651768
XLogInsertRecord 30785008
XLogNeedsFlush 17391752
XLogPutNextOid 1260
XLogRecPtrToBytePos 5202
XLogReportParameters 1862
XLogRestorePoint 6
XLogSetAsyncXactLSN 99800
XLogSetReplicationSlotMinimumLSN 70260
XLogShutdownWalRcv 1988
XLogWrite 4399940
assign_checkpoint_completion_target 2354
assign_max_wal_size 11950
assign_wal_consistency_checking 4292
assign_wal_sync_method 2354
check_wal_buffers 4630
check_wal_consistency_checking 4294
check_wal_segment_size 4550
do_pg_abort_backup 16
do_pg_backup_start 338
do_pg_backup_stop 324
get_backup_status 378
get_sync_bit 33232
issue_xlog_fsync 345452
register_persistent_abort_backup_handler 8
show_archive_command 3470
show_effective_wal_level 3532
show_in_hot_standby 31768
str_time 1768
update_checkpoint_display 7132
xlog_redo 88858

Generated by: LCOV version 1.16