LCOV - code coverage report
Current view: top level - src/backend/access/transam - xlog.c (source / functions) Hit Total Coverage
Test: PostgreSQL 19devel Lines: 2201 2480 88.8 %
Date: 2025-07-05 04:18:30 Functions: 119 122 97.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
AdvanceXLInsertBuffer 4784546
BootStrapXLOG 102
CalculateCheckpointSegments 14756
CheckPointGuts 3374
CheckRequiredParameterValues 490
CheckXLogRemoved 240214
CleanupAfterArchiveRecovery 98
CleanupBackupHistory 296
CopyXLogRecordToWAL 29218124
CreateCheckPoint 2988
CreateEndOfRecoveryRecord 84
CreateOverwriteContrecordRecord 20
CreateRestartPoint 1226
DataChecksumsEnabled 20118534
GetActiveWalLevelOnStandby 138
GetDefaultCharSignedness 6
GetFakeLSNForUnloggedRel 66
GetFlushRecPtr 460450
GetFullPageWriteInfo 29521192
GetInsertRecPtr 14330
GetLastImportantRecPtr 3074
GetLastSegSwitchData 0
GetMockAuthenticationNonce 2
GetOldestRestartPoint 828
GetRecoveryState 41828
GetRedoRecPtr 592286
GetSystemIdentifier 2704
GetWALAvailability 952
GetWALInsertionTimeLine 224772
GetWALInsertionTimeLineIfSet 0
GetXLogBuffer 33977686
GetXLogInsertRecPtr 3946
GetXLogWriteRecPtr 2884
InitControlFile 102
InitializeWalConsistencyChecking 1824
InstallXLogFileSegment 5858
IsInstallXLogFileSegmentActive 0
KeepLogSeg 4304
LocalProcessControlFile 1844
LocalSetXLogInsertAllowed 1786
LogCheckpointEnd 3374
LogCheckpointStart 2778
PerformRecoveryXLogAction 308
PreallocXlogFiles 3916
ReachedEndOfBackup 142
ReadControlFile 1946
RecoveryInProgress 178712268
RecoveryRestartPoint 1420
RemoveNonParentXlogFiles 120
RemoveOldXlogFiles 3374
RemoveTempXlogFiles 350
RemoveXlogFile 5066
RequestXLogSwitch 1470
ReserveXLogInsertLocation 29216770
ReserveXLogSwitch 1470
SetInstallXLogFileSegmentActive 2206
SetWalWriterSleeping 972
ShutdownXLOG 1238
StartupXLOG 1848
SwitchIntoArchiveRecovery 6
UpdateCheckPointDistanceEstimate 3374
UpdateControlFile 17996
UpdateFullPageWrites 2870
UpdateLastRemovedPtr 5034
UpdateMinRecoveryPoint 212976
ValidateXLOGDirectoryStructure 1848
WALInsertLockAcquire 29229762
WALInsertLockAcquireExclusive 8360
WALInsertLockRelease 29238122
WALInsertLockUpdateInsertingAt 4775182
WALReadFromBuffers 206944
WaitXLogInsertionsToFinish 4097528
WriteControlFile 102
XLOGChooseNumBuffers 2130
XLOGShmemInit 2134
XLOGShmemSize 6096
XLOGfileslop 3374
XLogBackgroundFlush 31112
XLogBytePosToEndRecPtr 30012330
XLogBytePosToRecPtr 58441380
XLogCheckpointNeeded 9494
XLogFileClose 12728
XLogFileCopy 82
XLogFileInit 28180
XLogFileInitInternal 28616
XLogFileOpen 72
XLogFlush 1361790
XLogGetLastRemovedSegno 2108
XLogGetOldestSegno 10
XLogGetReplicationSlotMinimumLSN 4304
XLogInitNewTimeline 98
XLogInsertAllowed 61090488
XLogInsertRecord 29233010
XLogNeedsFlush 17960132
XLogPutNextOid 1186
XLogRecPtrToBytePos 4810
XLogReportParameters 1728
XLogRestorePoint 6
XLogSetAsyncXactLSN 98748
XLogSetReplicationSlotMinimumLSN 51372
XLogShutdownWalRcv 2124
XLogWrite 4034846
assign_checkpoint_completion_target 2210
assign_max_wal_size 10600
assign_wal_consistency_checking 4000
assign_wal_sync_method 2210
check_max_slot_wal_keep_size 2466
check_wal_buffers 4340
check_wal_consistency_checking 4002
check_wal_segment_size 4260
do_pg_abort_backup 16
do_pg_backup_start 324
do_pg_backup_stop 310
get_backup_status 364
get_sync_bit 31430
issue_xlog_fsync 317068
register_persistent_abort_backup_handler 8
show_archive_command 3552
show_in_hot_standby 29102
str_time 1644
update_checkpoint_display 6748
xlog_redo 86712

Generated by: LCOV version 1.16