LCOV - code coverage report
Current view: top level - src/backend/access/transam - xlog.c (source / functions) Hit Total Coverage
Test: PostgreSQL 18beta1 Lines: 2197 2479 88.6 %
Date: 2025-06-07 18:18:20 Functions: 119 122 97.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
AdvanceXLInsertBuffer 4594058
BootStrapXLOG 98
CalculateCheckpointSegments 14576
CheckPointGuts 3324
CheckRequiredParameterValues 486
CheckXLogRemoved 233646
CleanupAfterArchiveRecovery 98
CleanupBackupHistory 294
CopyXLogRecordToWAL 29080420
CreateCheckPoint 2954
CreateEndOfRecoveryRecord 84
CreateOverwriteContrecordRecord 20
CreateRestartPoint 1176
DataChecksumsEnabled 20206592
GetActiveWalLevelOnStandby 138
GetDefaultCharSignedness 6
GetFakeLSNForUnloggedRel 66
GetFlushRecPtr 427530
GetFullPageWriteInfo 29380458
GetInsertRecPtr 14166
GetLastImportantRecPtr 3030
GetLastSegSwitchData 0
GetMockAuthenticationNonce 2
GetOldestRestartPoint 826
GetRecoveryState 8414
GetRedoRecPtr 590034
GetSystemIdentifier 2696
GetWALAvailability 926
GetWALInsertionTimeLine 217490
GetWALInsertionTimeLineIfSet 0
GetXLogBuffer 33660942
GetXLogInsertRecPtr 3940
GetXLogWriteRecPtr 2842
InitControlFile 98
InitializeWalConsistencyChecking 1798
InstallXLogFileSegment 5762
IsInstallXLogFileSegmentActive 0
KeepLogSeg 4226
LocalProcessControlFile 1818
LocalSetXLogInsertAllowed 1758
LogCheckpointEnd 3324
LogCheckpointStart 2752
PerformRecoveryXLogAction 306
PreallocXlogFiles 3860
ReachedEndOfBackup 140
ReadControlFile 1916
RecoveryInProgress 178359072
RecoveryRestartPoint 1418
RemoveNonParentXlogFiles 120
RemoveOldXlogFiles 3324
RemoveTempXlogFiles 346
RemoveXlogFile 5208
RequestXLogSwitch 1388
ReserveXLogInsertLocation 29079146
ReserveXLogSwitch 1388
SetInstallXLogFileSegmentActive 2172
SetWalWriterSleeping 960
ShutdownXLOG 1214
StartupXLOG 1818
SwitchIntoArchiveRecovery 6
UpdateCheckPointDistanceEstimate 3324
UpdateControlFile 17686
UpdateFullPageWrites 2822
UpdateLastRemovedPtr 5176
UpdateMinRecoveryPoint 206660
ValidateXLOGDirectoryStructure 1818
WALInsertLockAcquire 29092082
WALInsertLockAcquireExclusive 8232
WALInsertLockRelease 29100314
WALInsertLockUpdateInsertingAt 4584568
WALReadFromBuffers 199834
WaitXLogInsertionsToFinish 3959206
WriteControlFile 98
XLOGChooseNumBuffers 2092
XLOGShmemInit 2096
XLOGShmemSize 5994
XLOGfileslop 3324
XLogBackgroundFlush 31922
XLogBytePosToEndRecPtr 29866124
XLogBytePosToRecPtr 58165944
XLogCheckpointNeeded 9480
XLogFileClose 12526
XLogFileCopy 80
XLogFileInit 27834
XLogFileInitInternal 28284
XLogFileOpen 76
XLogFlush 1342210
XLogGetLastRemovedSegno 2074
XLogGetOldestSegno 10
XLogGetReplicationSlotMinimumLSN 4226
XLogInitNewTimeline 98
XLogInsertAllowed 60743634
XLogInsertRecord 29095232
XLogNeedsFlush 18196758
XLogPutNextOid 1162
XLogRecPtrToBytePos 4674
XLogReportParameters 1700
XLogRestorePoint 6
XLogSetAsyncXactLSN 96584
XLogSetReplicationSlotMinimumLSN 56570
XLogShutdownWalRcv 2094
XLogWrite 3897672
assign_checkpoint_completion_target 2164
assign_max_wal_size 10496
assign_wal_consistency_checking 3958
assign_wal_sync_method 2164
check_max_slot_wal_keep_size 2422
check_wal_buffers 4256
check_wal_consistency_checking 3960
check_wal_segment_size 4180
do_pg_abort_backup 16
do_pg_backup_start 322
do_pg_backup_stop 308
get_backup_status 362
get_sync_bit 30946
issue_xlog_fsync 318208
register_persistent_abort_backup_handler 8
show_archive_command 3544
show_in_hot_standby 29036
str_time 1622
update_checkpoint_display 6648
xlog_redo 85810

Generated by: LCOV version 1.16