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

Side by Side Diff: third_party/sqlite/sqlite-src-3080704/tool/fragck.tcl

Issue 883353008: [sql] Import reference version of SQLite 3.8.7.4. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hold back encoding change which is messing up patch. 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 # Run this TCL script using "testfixture" to get a report that shows 1 # Run this TCL script using "testfixture" to get a report that shows
2 # the sequence of database pages used by a particular table or index. 2 # the sequence of database pages used by a particular table or index.
3 # This information is used for fragmentation analysis. 3 # This information is used for fragmentation analysis.
4 # 4 #
5 5
6 # Get the name of the database to analyze 6 # Get the name of the database to analyze
7 # 7 #
8 8
9 if {[llength $argv]!=2} { 9 if {[llength $argv]!=2} {
10 puts stderr "Usage: $argv0 database-name table-or-index-name" 10 puts stderr "Usage: $argv0 database-name table-or-index-name"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 set csr [btree_cursor $DB $rootpage 0] 140 set csr [btree_cursor $DB $rootpage 0]
141 for {btree_first $csr} {![btree_eof $csr]} {btree_next $csr} { 141 for {btree_first $csr} {![btree_eof $csr]} {btree_next $csr} {
142 page_info $csr 0 142 page_info $csr 0
143 set i 1 143 set i 1
144 foreach pg [btree_ovfl_info $DB $csr] { 144 foreach pg [btree_ovfl_info $DB $csr] {
145 puts [format {OVFL %3d: %6d} $i $pg] 145 puts [format {OVFL %3d: %6d} $i $pg]
146 incr i 146 incr i
147 } 147 }
148 } 148 }
149 exit 0 149 exit 0
OLDNEW
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/tool/fast_vacuum.c ('k') | third_party/sqlite/sqlite-src-3080704/tool/genfkey.README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698