Lines Matching refs:pArg

487 static void shellLog(void *pArg, int iErrCode, const char *zMsg){
488 struct callback_data *p = (struct callback_data*)pArg;
674 static int shell_callback(void *pArg, int nArg, char **azArg, char **azCol, int *aiType){
676 struct callback_data *p = (struct callback_data*)pArg;
865 static int callback(void *pArg, int nArg, char **azArg, char **azCol){
867 return shell_callback(pArg, nArg, azArg, azCol, NULL);
1028 struct callback_data *pArg, /* Pointer to struct callback_data */
1034 if( pArg && pArg->out ){
1038 fprintf(pArg->out, "Memory Used: %d (max %d) bytes\n", iCur, iHiwtr);
1041 fprintf(pArg->out, "Number of Outstanding Allocations: %d (max %d)\n", iCur, iHiwtr);
1046 ** fprintf(pArg->out, "Number of Pcache Pages Used: %d (max %d) pages\n", iCur, iHiwtr);
1050 fprintf(pArg->out, "Number of Pcache Overflow Bytes: %d (max %d) bytes\n", iCur, iHiwtr);
1055 ** fprintf(pArg->out, "Number of Scratch Allocations Used: %d (max %d)\n", iCur, iHiwtr);
1059 fprintf(pArg->out, "Number of Scratch Overflow Bytes: %d (max %d) bytes\n", iCur, iHiwtr);
1062 fprintf(pArg->out, "Largest Allocation: %d bytes\n", iHiwtr);
1065 fprintf(pArg->out, "Largest Pcache Allocation: %d bytes\n", iHiwtr);
1068 fprintf(pArg->out, "Largest Scratch Allocation: %d bytes\n", iHiwtr);
1072 fprintf(pArg->out, "Deepest Parser Stack: %d (max %d)\n", iCur, iHiwtr);
1076 if( pArg && pArg->out && db ){
1079 fprintf(pArg->out, "Lookaside Slots Used: %d (max %d)\n", iCur, iHiwtr);
1081 fprintf(pArg->out, "Successful lookaside attempts: %d\n", iHiwtr);
1083 fprintf(pArg->out, "Lookaside failures due to size: %d\n", iHiwtr);
1085 fprintf(pArg->out, "Lookaside failures due to OOM: %d\n", iHiwtr);
1088 fprintf(pArg->out, "Pager Heap Usage: %d bytes\n", iCur); iHiwtr = iCur = -1;
1090 fprintf(pArg->out, "Page cache hits: %d\n", iCur);
1093 fprintf(pArg->out, "Page cache misses: %d\n", iCur);
1096 fprintf(pArg->out, "Page cache writes: %d\n", iCur);
1099 fprintf(pArg->out, "Schema Heap Usage: %d bytes\n", iCur);
1102 fprintf(pArg->out, "Statement Heap/Lookaside Usage: %d bytes\n", iCur);
1105 if( pArg && pArg->out && db && pArg->pStmt ){
1106 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FULLSCAN_STEP, bReset);
1107 fprintf(pArg->out, "Fullscan Steps: %d\n", iCur);
1108 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_SORT, bReset);
1109 fprintf(pArg->out, "Sort Operations: %d\n", iCur);
1110 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_AUTOINDEX, bReset);
1111 fprintf(pArg->out, "Autoindex Inserts: %d\n", iCur);
1131 struct callback_data *pArg, /* Pointer to struct callback_data */
1158 if( pArg ){
1159 pArg->pStmt = pStmt;
1160 pArg->cnt = 0;
1164 if( pArg && pArg->echoOn ){
1166 fprintf(pArg->out, "%s\n", zStmtSql ? zStmtSql : zSql);
1170 if( pArg && pArg->mode==MODE_Explain ){
1174 fprintf(pArg->out, "%s", zExplain);
1215 if( xCallback(pArg, nCol, azVals, azCols, aiTypes) ){
1232 if( pArg && pArg->statsOn ){
1233 display_stats(db, pArg, 0);
1249 if( pArg ){
1250 pArg->pStmt = NULL;
1265 static int dump_callback(void *pArg, int nArg, char **azArg, char **azCol){
1271 struct callback_data *p = (struct callback_data *)pArg;
1612 static void sql_trace_callback(void *pArg, const char *z){
1613 FILE *f = (FILE*)pArg;