Lines Matching refs:pArg
622 static void shellLog(void *pArg, int iErrCode, const char *zMsg){ in shellLog() argument
623 ShellState *p = (ShellState*)pArg; in shellLog()
815 void *pArg, in shell_callback() argument
822 ShellState *p = (ShellState*)pArg; in shell_callback()
1050 static int callback(void *pArg, int nArg, char **azArg, char **azCol){ in callback() argument
1052 return shell_callback(pArg, nArg, azArg, azCol, NULL); in callback()
1213 ShellState *pArg, /* Pointer to ShellState */ in display_stats() argument
1219 if( pArg && pArg->out ){ in display_stats()
1223 fprintf(pArg->out, in display_stats()
1228 fprintf(pArg->out, "Number of Outstanding Allocations: %d (max %d)\n", in display_stats()
1230 if( pArg->shellFlgs & SHFLG_Pagecache ){ in display_stats()
1233 fprintf(pArg->out, in display_stats()
1239 fprintf(pArg->out, in display_stats()
1242 if( pArg->shellFlgs & SHFLG_Scratch ){ in display_stats()
1245 fprintf(pArg->out, "Number of Scratch Allocations Used: %d (max %d)\n", in display_stats()
1250 fprintf(pArg->out, in display_stats()
1255 fprintf(pArg->out, "Largest Allocation: %d bytes\n", in display_stats()
1259 fprintf(pArg->out, "Largest Pcache Allocation: %d bytes\n", in display_stats()
1263 fprintf(pArg->out, "Largest Scratch Allocation: %d bytes\n", in display_stats()
1268 fprintf(pArg->out, "Deepest Parser Stack: %d (max %d)\n", in display_stats()
1273 if( pArg && pArg->out && db ){ in display_stats()
1274 if( pArg->shellFlgs & SHFLG_Lookaside ){ in display_stats()
1278 fprintf(pArg->out, "Lookaside Slots Used: %d (max %d)\n", in display_stats()
1282 fprintf(pArg->out, "Successful lookaside attempts: %d\n", iHiwtr); in display_stats()
1285 fprintf(pArg->out, "Lookaside failures due to size: %d\n", iHiwtr); in display_stats()
1288 fprintf(pArg->out, "Lookaside failures due to OOM: %d\n", iHiwtr); in display_stats()
1292 fprintf(pArg->out, "Pager Heap Usage: %d bytes\n",iCur); in display_stats()
1295 fprintf(pArg->out, "Page cache hits: %d\n", iCur); in display_stats()
1298 fprintf(pArg->out, "Page cache misses: %d\n", iCur); in display_stats()
1301 fprintf(pArg->out, "Page cache writes: %d\n", iCur); in display_stats()
1304 fprintf(pArg->out, "Schema Heap Usage: %d bytes\n",iCur); in display_stats()
1307 fprintf(pArg->out, "Statement Heap/Lookaside Usage: %d bytes\n",iCur); in display_stats()
1310 if( pArg && pArg->out && db && pArg->pStmt ){ in display_stats()
1311 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FULLSCAN_STEP, in display_stats()
1313 fprintf(pArg->out, "Fullscan Steps: %d\n", iCur); in display_stats()
1314 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_SORT, bReset); in display_stats()
1315 fprintf(pArg->out, "Sort Operations: %d\n", iCur); in display_stats()
1316 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_AUTOINDEX,bReset); in display_stats()
1317 fprintf(pArg->out, "Autoindex Inserts: %d\n", iCur); in display_stats()
1318 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP, bReset); in display_stats()
1319 fprintf(pArg->out, "Virtual Machine Steps: %d\n", iCur); in display_stats()
1332 ShellState *pArg /* Pointer to ShellState */ in display_scanstats() argument
1336 UNUSED_PARAMETER(pArg); in display_scanstats()
1339 fprintf(pArg->out, "-------- scanstats --------\n"); in display_scanstats()
1344 sqlite3_stmt *p = pArg->pStmt; in display_scanstats()
1357 if( k>0 ) fprintf(pArg->out, "-------- subquery %d -------\n", k); in display_scanstats()
1363 fprintf(pArg->out, "Loop %2d: %s\n", n, zExplain); in display_scanstats()
1365 fprintf(pArg->out, in display_scanstats()
1371 fprintf(pArg->out, "---------------------------\n"); in display_scanstats()
1489 ShellState *pArg, /* Pointer to ShellState */ in shell_exec() argument
1516 if( pArg ){ in shell_exec()
1517 pArg->pStmt = pStmt; in shell_exec()
1518 pArg->cnt = 0; in shell_exec()
1522 if( pArg && pArg->echoOn ){ in shell_exec()
1524 fprintf(pArg->out, "%s\n", zStmtSql ? zStmtSql : zSql); in shell_exec()
1528 if( pArg && pArg->autoEQP ){ in shell_exec()
1535 fprintf(pArg->out,"--EQP-- %d,", sqlite3_column_int(pExplain, 0)); in shell_exec()
1536 fprintf(pArg->out,"%d,", sqlite3_column_int(pExplain, 1)); in shell_exec()
1537 fprintf(pArg->out,"%d,", sqlite3_column_int(pExplain, 2)); in shell_exec()
1538 fprintf(pArg->out,"%s\n", sqlite3_column_text(pExplain, 3)); in shell_exec()
1547 if( pArg && pArg->mode==MODE_Explain ){ in shell_exec()
1548 explain_data_prepare(pArg, pStmt); in shell_exec()
1578 if( x==SQLITE_BLOB && pArg && pArg->mode==MODE_Insert ){ in shell_exec()
1592 if( xCallback(pArg, nCol, azVals, azCols, aiTypes) ){ in shell_exec()
1608 explain_data_delete(pArg); in shell_exec()
1611 if( pArg && pArg->statsOn ){ in shell_exec()
1612 display_stats(db, pArg, 0); in shell_exec()
1616 if( pArg && pArg->scanstatsOn ){ in shell_exec()
1617 display_scanstats(db, pArg); in shell_exec()
1633 if( pArg ){ in shell_exec()
1634 pArg->pStmt = NULL; in shell_exec()
1649 static int dump_callback(void *pArg, int nArg, char **azArg, char **azCol){ in dump_callback() argument
1655 ShellState *p = (ShellState *)pArg; in dump_callback()
2121 static void sql_trace_callback(void *pArg, const char *z){ in sql_trace_callback() argument
2122 FILE *f = (FILE*)pArg; in sql_trace_callback()