LCOV - code coverage report
Current view: top level - src/bin/pgbench - pgbench.c (source / functions) Hit Total Coverage
Test: PostgreSQL 18devel Lines: 2446 2846 85.9 %
Date: 2025-01-30 15:15:02 Functions: 120 125 96.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
CheckConditional 492
ConditionError 12
GetTableInfo 14
ParseScript 562
accumStats 18040
addScript 496
addToSimpleStats 19226
add_socket_to_set 94776
advanceConnectionState 35790
allocCStatePrepared 68
alloc_socket_set 174
assignVariables 16414
canRetryError 70
checkInitSteps 8
chooseScript 15458
clear_socket_set 41614
coerceToBool 216
coerceToDouble 208
coerceToInt 13160
commandError 4
commandFailed 64
compareVariableNames 107078
computeIterativeZipfian 6
createPartitions 4
create_sql_command 2306
discardUntilSync 0
disconnect_all 340
doConnect 640
doLog 220
doRetry 4
enlargeVariables 2194
evalFunc 6992
evalLazyFunc 130
evalStandardFunc 6866
evaluateExpr 18222
evaluateSleep 12
executeMetaCommand 4638
executeStatement 118
findBuiltin 312
finishCon 966
free_command 58
free_socket_set 170
getExponentialRand 6
getFailures 192
getGaussianRand 6
getHashFnv1a 2
getHashMurmur2 10
getMetaCommand 1052
getPoissonRand 420
getQueryParams 5062
getResultString 0
getSQLErrorStatus 28
getTransactionStatus 15356
getVariable 5248
getZipfianRand 6
getrand 5706
handle_sig_alarm 0
initAccount 400000
initBranch 4
initCreateFKeys 4
initCreatePKeys 6
initCreateTables 6
initDropTables 6
initGenerateDataClientSide 4
initGenerateDataServerSide 2
initPopulateTable 12
initRandomState 778
initSimpleStats 4030
initStats 1078
initTeller 40
initTruncateTables 6
initVacuum 4
isLazyFunc 6992
is_an_int 892
listAvailableScripts 6
lookupCreateVariable 6162
lookupVariable 15980
main 354
makeVariableValue 3878
mergeSimpleStats 340
parseQuery 188
parseScriptWeight 280
parseVariable 3382
permute 90
pg_time_now 23692
pg_time_now_lazy 21426
postprocess_sql_command 560
prepareCommand 3992
prepareCommandsInPipeline 84
printProgressReport 0
printResults 170
printSimpleStats 26
printVerboseErrorMessages 4
printVersion 174
processXactStats 15370
process_backslash_command 1052
process_builtin 306
process_file 258
putVariable 1774
putVariableInt 1010
putVariableValue 4388
readCommandResponse 21568
read_file_contents 256
replaceVariable 2450
runInitSteps 6
runShellCommand 12
sendCommand 21476
setBoolValue 278
setDoubleValue 78
setIntValue 8292
setNullValue 8
set_random_seed 358
setalarm 0
skip_sql_comments 2306
socket_has_input 117022
strtodouble 132
strtoint64 2480
syntax_error 66
threadRun 174
tryExecuteStatement 60
usage 2
valid_variable_name 2200
valueTruth 922
valueTypeName 8
wait_on_socket_set 16696

Generated by: LCOV version 1.14