Lines Matching refs:pArg

624 static void shellLog(void *pArg, int iErrCode, const char *zMsg){
625 ShellState *p = (ShellState*)pArg;
817 void *pArg,
824 ShellState *p = (ShellState*)pArg;
1052 static int callback(void *pArg, int nArg, char **azArg, char **azCol){
1054 return shell_callback(pArg, nArg, azArg, azCol, NULL);
1215 ShellState *pArg, /* Pointer to ShellState */
1221 if( pArg && pArg->out ){
1225 fprintf(pArg->out,
1230 fprintf(pArg->out, "Number of Outstanding Allocations: %d (max %d)\n",
1232 if( pArg->shellFlgs & SHFLG_Pagecache ){
1235 fprintf(pArg->out,
1241 fprintf(pArg->out,
1244 if( pArg->shellFlgs & SHFLG_Scratch ){
1247 fprintf(pArg->out, "Number of Scratch Allocations Used: %d (max %d)\n",
1252 fprintf(pArg->out,
1257 fprintf(pArg->out, "Largest Allocation: %d bytes\n",
1261 fprintf(pArg->out, "Largest Pcache Allocation: %d bytes\n",
1265 fprintf(pArg->out, "Largest Scratch Allocation: %d bytes\n",
1270 fprintf(pArg->out, "Deepest Parser Stack: %d (max %d)\n",
1275 if( pArg && pArg->out && db ){
1276 if( pArg->shellFlgs & SHFLG_Lookaside ){
1280 fprintf(pArg->out, "Lookaside Slots Used: %d (max %d)\n",
1284 fprintf(pArg->out, "Successful lookaside attempts: %d\n", iHiwtr);
1287 fprintf(pArg->out, "Lookaside failures due to size: %d\n", iHiwtr);
1290 fprintf(pArg->out, "Lookaside failures due to OOM: %d\n", iHiwtr);
1294 fprintf(pArg->out, "Pager Heap Usage: %d bytes\n",iCur);
1297 fprintf(pArg->out, "Page cache hits: %d\n", iCur);
1300 fprintf(pArg->out, "Page cache misses: %d\n", iCur);
1303 fprintf(pArg->out, "Page cache writes: %d\n", iCur);
1306 fprintf(pArg->out, "Schema Heap Usage: %d bytes\n",iCur);
1309 fprintf(pArg->out, "Statement Heap/Lookaside Usage: %d bytes\n",iCur);
1312 if( pArg && pArg->out && db && pArg->pStmt ){
1313 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_FULLSCAN_STEP,
1315 fprintf(pArg->out, "Fullscan Steps: %d\n", iCur);
1316 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_SORT, bReset);
1317 fprintf(pArg->out, "Sort Operations: %d\n", iCur);
1318 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_AUTOINDEX,bReset);
1319 fprintf(pArg->out, "Autoindex Inserts: %d\n", iCur);
1320 iCur = sqlite3_stmt_status(pArg->pStmt, SQLITE_STMTSTATUS_VM_STEP, bReset);
1321 fprintf(pArg->out, "Virtual Machine Steps: %d\n", iCur);
1332 ShellState *pArg /* Pointer to ShellState */
1336 fprintf(pArg->out, "-------- scanstats --------\n");
1341 sqlite3_stmt *p = pArg->pStmt;
1354 if( k>0 ) fprintf(pArg->out, "-------- subquery %d -------\n", k);
1360 fprintf(pArg->out, "Loop %2d: %s\n", n, zExplain);
1362 fprintf(pArg->out,
1368 fprintf(pArg->out, "---------------------------\n");
1486 ShellState *pArg, /* Pointer to ShellState */
1513 if( pArg ){
1514 pArg->pStmt = pStmt;
1515 pArg->cnt = 0;
1519 if( pArg && pArg->echoOn ){
1521 fprintf(pArg->out, "%s\n", zStmtSql ? zStmtSql : zSql);
1525 if( pArg && pArg->autoEQP ){
1532 fprintf(pArg->out,"--EQP-- %d,", sqlite3_column_int(pExplain, 0));
1533 fprintf(pArg->out,"%d,", sqlite3_column_int(pExplain, 1));
1534 fprintf(pArg->out,"%d,", sqlite3_column_int(pExplain, 2));
1535 fprintf(pArg->out,"%s\n", sqlite3_column_text(pExplain, 3));
1544 if( pArg && pArg->mode==MODE_Explain ){
1545 explain_data_prepare(pArg, pStmt);
1575 if( x==SQLITE_BLOB && pArg && pArg->mode==MODE_Insert ){
1589 if( xCallback(pArg, nCol, azVals, azCols, aiTypes) ){
1605 explain_data_delete(pArg);
1608 if( pArg && pArg->statsOn ){
1609 display_stats(db, pArg, 0);
1613 if( pArg && pArg->scanstatsOn ){
1614 display_scanstats(db, pArg);
1630 if( pArg ){
1631 pArg->pStmt = NULL;
1646 static int dump_callback(void *pArg, int nArg, char **azArg, char **azCol){
1652 ShellState *p = (ShellState *)pArg;
2116 static void sql_trace_callback(void *pArg, const char *z){
2117 FILE *f = (FILE*)pArg;