Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/sqlite/src/test/wordcount.c

Issue 901033002: Import SQLite 3.8.7.4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium changes to support SQLite 3.8.7.4. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 ** This C program extracts all "words" from an input document and adds them 2 ** This C program extracts all "words" from an input document and adds them
3 ** to an SQLite database. A "word" is any contiguous sequence of alphabetic 3 ** to an SQLite database. A "word" is any contiguous sequence of alphabetic
4 ** characters. All digits, punctuation, and whitespace characters are 4 ** characters. All digits, punctuation, and whitespace characters are
5 ** word separators. The database stores a single entry for each distinct 5 ** word separators. The database stores a single entry for each distinct
6 ** word together with a count of the number of occurrences of that word. 6 ** word together with a count of the number of occurrences of that word.
7 ** A fresh database is created automatically on each run. 7 ** A fresh database is created automatically on each run.
8 ** 8 **
9 ** wordcount DATABASE INPUTFILE 9 ** wordcount DATABASE INPUTFILE
10 ** 10 **
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 printf("-- Scratch Overflow Bytes: %d (max %d)\n", iCur,iHiwtr); 536 printf("-- Scratch Overflow Bytes: %d (max %d)\n", iCur,iHiwtr);
537 sqlite3_status(SQLITE_STATUS_MALLOC_SIZE, &iCur, &iHiwtr, 0); 537 sqlite3_status(SQLITE_STATUS_MALLOC_SIZE, &iCur, &iHiwtr, 0);
538 printf("-- Largest Allocation: %d bytes\n",iHiwtr); 538 printf("-- Largest Allocation: %d bytes\n",iHiwtr);
539 sqlite3_status(SQLITE_STATUS_PAGECACHE_SIZE, &iCur, &iHiwtr, 0); 539 sqlite3_status(SQLITE_STATUS_PAGECACHE_SIZE, &iCur, &iHiwtr, 0);
540 printf("-- Largest Pcache Allocation: %d bytes\n",iHiwtr); 540 printf("-- Largest Pcache Allocation: %d bytes\n",iHiwtr);
541 sqlite3_status(SQLITE_STATUS_SCRATCH_SIZE, &iCur, &iHiwtr, 0); 541 sqlite3_status(SQLITE_STATUS_SCRATCH_SIZE, &iCur, &iHiwtr, 0);
542 printf("-- Largest Scratch Allocation: %d bytes\n", iHiwtr); 542 printf("-- Largest Scratch Allocation: %d bytes\n", iHiwtr);
543 } 543 }
544 return 0; 544 return 0;
545 } 545 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698