LCOV - code coverage report
Current view: top level - src/bin/pgbench - pgbench.c (source / functions) Hit Total Coverage
Test: PostgreSQL 18devel Lines: 2455 2864 85.7 %
Date: 2025-04-04 17:16:32 Functions: 121 126 96.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
CheckConditional 496
ConditionError 12
GetTableInfo 14
ParseScript 566
accumStats 18100
addScript 500
addToSimpleStats 19286
add_socket_to_set 103428
advanceConnectionState 35430
allocCStatePrepared 68
alloc_socket_set 174
assignVariables 16440
canRetryError 66
checkInitSteps 8
chooseScript 15488
clear_socket_set 46444
coerceToBool 216
coerceToDouble 208
coerceToInt 13168
commandError 4
commandFailed 64
compareVariableNames 107774
computeIterativeZipfian 6
createPartitions 4
create_sql_command 2342
discardUntilSync 0
disconnect_all 340
doConnect 640
doLog 220
doRetry 4
enlargeVariables 2204
evalFunc 6996
evalLazyFunc 130
evalStandardFunc 6870
evaluateExpr 18310
evaluateSleep 12
executeMetaCommand 4764
executeStatement 118
findBuiltin 312
finishCon 966
free_command 62
free_socket_set 170
getExponentialRand 6
getFailures 196
getGaussianRand 6
getHashFnv1a 2
getHashMurmur2 10
getMetaCommand 1064
getPoissonRand 420
getQueryParams 5086
getResultString 0
getSQLErrorStatus 26
getTransactionStatus 15386
getVariable 5000
getZipfianRand 6
get_table_relkind 12
getrand 5736
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 4078
initStats 1084
initTeller 40
initTruncateTables 6
initVacuum 4
isLazyFunc 6996
is_an_int 972
listAvailableScripts 6
lookupCreateVariable 6242
lookupVariable 15894
main 354
makeVariableValue 3960
mergeSimpleStats 340
parseQuery 188
parseScriptWeight 284
parseVariable 4900
permute 90
pg_time_now 23754
pg_time_now_lazy 21486
postprocess_sql_command 584
prepareCommand 4016
prepareCommandsInPipeline 84
printProgressReport 0
printResults 170
printSimpleStats 30
printVerboseErrorMessages 4
printVersion 174
processXactStats 15400
process_backslash_command 1064
process_builtin 306
process_file 262
putVariable 1854
putVariableInt 1010
putVariableValue 4388
readCommandResponse 21616
read_file_contents 260
replaceVariable 2206
runInitSteps 6
runShellCommand 12
sendCommand 21526
setBoolValue 278
setDoubleValue 78
setIntValue 8376
setNullValue 8
set_random_seed 358
setalarm 0
skip_sql_comments 2342
socket_has_input 129304
strtodouble 132
strtoint64 2560
syntax_error 66
threadRun 174
tryExecuteStatement 60
usage 2
valid_variable_name 2210
valueTruth 1002
valueTypeName 8
wait_on_socket_set 18294

Generated by: LCOV version 1.14