亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? spaceanal.tcl

?? sqlite庫
?? TCL
?? 第 1 頁 / 共 2 頁
字號:
# Run this TCL script using "testfixture" in order get a report that shows# how much disk space is used by a particular data to actually store data# versus how much space is unused.#if {[catch {# Get the name of the database to analyze##set argv $argv0if {[llength $argv]!=1} {  puts stderr "Usage: $argv0 database-name"  exit 1}set file_to_analyze [lindex $argv 0]if {![file exists $file_to_analyze]} {  puts stderr "No such file: $file_to_analyze"  exit 1}if {![file readable $file_to_analyze]} {  puts stderr "File is not readable: $file_to_analyze"  exit 1}if {[file size $file_to_analyze]<512} {  puts stderr "Empty or malformed database: $file_to_analyze"  exit 1}# Open the database#sqlite3 db [lindex $argv 0]set DB [btree_open [lindex $argv 0] 1000 0]# In-memory database for collecting statistics. This script loops through# the tables and indices in the database being analyzed, adding a row for each# to an in-memory database (for which the schema is shown below). It then# queries the in-memory db to produce the space-analysis report.#sqlite3 mem :memory:set tabledef\{CREATE TABLE space_used(   name clob,        -- Name of a table or index in the database file   tblname clob,     -- Name of associated table   is_index boolean, -- TRUE if it is an index, false for a table   nentry int,       -- Number of entries in the BTree   leaf_entries int, -- Number of leaf entries   payload int,      -- Total amount of data stored in this table or index   ovfl_payload int, -- Total amount of data stored on overflow pages   ovfl_cnt int,     -- Number of entries that use overflow   mx_payload int,   -- Maximum payload size   int_pages int,    -- Number of interior pages used   leaf_pages int,   -- Number of leaf pages used   ovfl_pages int,   -- Number of overflow pages used   int_unused int,   -- Number of unused bytes on interior pages   leaf_unused int,  -- Number of unused bytes on primary pages   ovfl_unused int   -- Number of unused bytes on overflow pages);}mem eval $tabledefproc integerify {real} {  return [expr int($real)]}mem function int integerify# Quote a string for use in an SQL query. Examples:## [quote {hello world}]   == {'hello world'}# [quote {hello world's}] == {'hello world''s'}#proc quote {txt} {  regsub -all ' $txt '' q  return '$q'}# This proc is a wrapper around the btree_cursor_info command. The# second argument is an open btree cursor returned by [btree_cursor].# The first argument is the name of an array variable that exists in# the scope of the caller. If the third argument is non-zero, then# info is returned for the page that lies $up entries upwards in the# tree-structure. (i.e. $up==1 returns the parent page, $up==2 the # grandparent etc.)## The following entries in that array are filled in with information retrieved# using [btree_cursor_info]:##   $arrayvar(page_no)             =  The page number#   $arrayvar(entry_no)            =  The entry number#   $arrayvar(page_entries)        =  Total number of entries on this page#   $arrayvar(cell_size)           =  Cell size (local payload + header)#   $arrayvar(page_freebytes)      =  Number of free bytes on this page#   $arrayvar(page_freeblocks)     =  Number of free blocks on the page#   $arrayvar(payload_bytes)       =  Total payload size (local + overflow)#   $arrayvar(header_bytes)        =  Header size in bytes#   $arrayvar(local_payload_bytes) =  Local payload size#   $arrayvar(parent)              =  Parent page number# proc cursor_info {arrayvar csr {up 0}} {  upvar $arrayvar a  foreach [list a(page_no) \                a(entry_no) \                a(page_entries) \                a(cell_size) \                a(page_freebytes) \                a(page_freeblocks) \                a(payload_bytes) \                a(header_bytes) \                a(local_payload_bytes) \                a(parent) ] [btree_cursor_info $csr $up] {}}# Determine the page-size of the database. This global variable is used# throughout the script.#set pageSize [db eval {PRAGMA page_size}]# Analyze every table in the database, one at a time.## The following query returns the name and root-page of each table in the# database, including the sqlite_master table.#set sql {  SELECT name, rootpage FROM sqlite_master WHERE type='table'  UNION ALL  SELECT 'sqlite_master', 1  ORDER BY 1}set wideZero [expr {10000000000 - 10000000000}]foreach {name rootpage} [db eval $sql] {  puts stderr "Analyzing table $name..."  # Code below traverses the table being analyzed (table name $name), using the  # btree cursor $cursor. Statistics related to table $name are accumulated in  # the following variables:  #  set total_payload $wideZero        ;# Payload space used by all entries  set total_ovfl $wideZero           ;# Payload space on overflow pages  set unused_int $wideZero           ;# Unused space on interior nodes  set unused_leaf $wideZero          ;# Unused space on leaf nodes  set unused_ovfl $wideZero          ;# Unused space on overflow pages  set cnt_ovfl $wideZero             ;# Number of entries that use overflows  set cnt_leaf_entry $wideZero       ;# Number of leaf entries  set cnt_int_entry $wideZero        ;# Number of interor entries  set mx_payload $wideZero           ;# Maximum payload size  set ovfl_pages $wideZero           ;# Number of overflow pages used  set leaf_pages $wideZero           ;# Number of leaf pages  set int_pages $wideZero            ;# Number of interior pages  # As the btree is traversed, the array variable $seen($pgno) is set to 1  # the first time page $pgno is encountered.  #  catch {unset seen}  # The following loop runs once for each entry in table $name. The table  # is traversed using the btree cursor stored in variable $csr  #  set csr [btree_cursor $DB $rootpage 0]  for {btree_first $csr} {![btree_eof $csr]} {btree_next $csr} {    incr cnt_leaf_entry    # Retrieve information about the entry the btree-cursor points to into    # the array variable $ci (cursor info).    #    cursor_info ci $csr    # Check if the payload of this entry is greater than the current     # $mx_payload statistic for the table. Also increase the $total_payload    # statistic.    #    if {$ci(payload_bytes)>$mx_payload} {set mx_payload $ci(payload_bytes)}    incr total_payload $ci(payload_bytes)    # If this entry uses overflow pages, then update the $cnt_ovfl,     # $total_ovfl, $ovfl_pages and $unused_ovfl statistics.    #    set ovfl [expr {$ci(payload_bytes)-$ci(local_payload_bytes)}]    if {$ovfl} {      incr cnt_ovfl      incr total_ovfl $ovfl      set n [expr {int(ceil($ovfl/($pageSize-4.0)))}]      incr ovfl_pages $n      incr unused_ovfl [expr {$n*($pageSize-4) - $ovfl}]    }    # If this is the first table entry analyzed for the page, then update    # the page-related statistics $leaf_pages and $unused_leaf. Also, if    # this page has a parent page that has not been analyzed, retrieve    # info for the parent and update statistics for it too.    #    if {![info exists seen($ci(page_no))]} {      set seen($ci(page_no)) 1      incr leaf_pages      incr unused_leaf $ci(page_freebytes)      # Now check if the page has a parent that has not been analyzed. If      # so, update the $int_pages, $cnt_int_entry and $unused_int statistics      # accordingly. Then check if the parent page has a parent that has      # not yet been analyzed etc.      #      # set parent $ci(parent_page_no)      for {set up 1} \          {$ci(parent)!=0 && ![info exists seen($ci(parent))]} {incr up} \      {        # Mark the parent as seen.        #        set seen($ci(parent)) 1        # Retrieve info for the parent and update statistics.        cursor_info ci $csr $up        incr int_pages        incr cnt_int_entry $ci(page_entries)        incr unused_int $ci(page_freebytes)      }    }  }  btree_close_cursor $csr  # Handle the special case where a table contains no data. In this case  # all statistics are zero, except for the number of leaf pages (1) and  # the unused bytes on leaf pages ($pageSize - 8).  #  # An exception to the above is the sqlite_master table. If it is empty  # then all statistics are zero except for the number of leaf pages (1),  # and the number of unused bytes on leaf pages ($pageSize - 112).  #  if {[llength [array names seen]]==0} {    set leaf_pages 1    if {$rootpage==1} {      set unused_leaf [expr {$pageSize-112}]    } else {      set unused_leaf [expr {$pageSize-8}]    }  }  # Insert the statistics for the table analyzed into the in-memory database.  #  set sql "INSERT INTO space_used VALUES("  append sql [quote $name]  append sql ",[quote $name]"  append sql ",0"  append sql ",[expr {$cnt_leaf_entry+$cnt_int_entry}]"  append sql ",$cnt_leaf_entry"  append sql ",$total_payload"  append sql ",$total_ovfl"  append sql ",$cnt_ovfl"  append sql ",$mx_payload"  append sql ",$int_pages"  append sql ",$leaf_pages"  append sql ",$ovfl_pages"  append sql ",$unused_int"  append sql ",$unused_leaf"  append sql ",$unused_ovfl"  append sql );  mem eval $sql}# Analyze every index in the database, one at a time.## The query below returns the name, associated table and root-page number # for every index in the database.#set sql {  SELECT name, tbl_name, rootpage FROM sqlite_master WHERE type='index'  ORDER BY 2, 1}foreach {name tbl_name rootpage} [db eval $sql] {  puts stderr "Analyzing index $name of table $tbl_name..."  # Code below traverses the index being analyzed (index name $name), using the  # btree cursor $cursor. Statistics related to index $name are accumulated in  # the following variables:  #  set total_payload $wideZero        ;# Payload space used by all entries  set total_ovfl $wideZero           ;# Payload space on overflow pages  set unused_leaf $wideZero          ;# Unused space on leaf nodes  set unused_ovfl $wideZero          ;# Unused space on overflow pages  set cnt_ovfl $wideZero             ;# Number of entries that use overflows  set cnt_leaf_entry $wideZero       ;# Number of leaf entries  set mx_payload $wideZero           ;# Maximum payload size  set ovfl_pages $wideZero           ;# Number of overflow pages used  set leaf_pages $wideZero           ;# Number of leaf pages  # As the btree is traversed, the array variable $seen($pgno) is set to 1  # the first time page $pgno is encountered.  #  catch {unset seen}  # The following loop runs once for each entry in index $name. The index  # is traversed using the btree cursor stored in variable $csr  #  set csr [btree_cursor $DB $rootpage 0]  for {btree_first $csr} {![btree_eof $csr]} {btree_next $csr} {    incr cnt_leaf_entry    # Retrieve information about the entry the btree-cursor points to into    # the array variable $ci (cursor info).    #    cursor_info ci $csr    # Check if the payload of this entry is greater than the current     # $mx_payload statistic for the table. Also increase the $total_payload    # statistic.    #    set payload [btree_keysize $csr]    if {$payload>$mx_payload} {set mx_payload $payload}    incr total_payload $payload    # If this entry uses overflow pages, then update the $cnt_ovfl,     # $total_ovfl, $ovfl_pages and $unused_ovfl statistics.    #    set ovfl [expr {$payload-$ci(local_payload_bytes)}]    if {$ovfl} {      incr cnt_ovfl      incr total_ovfl $ovfl      set n [expr {int(ceil($ovfl/($pageSize-4.0)))}]      incr ovfl_pages $n      incr unused_ovfl [expr {$n*($pageSize-4) - $ovfl}]    }    # If this is the first table entry analyzed for the page, then update    # the page-related statistics $leaf_pages and $unused_leaf.    #    if {![info exists seen($ci(page_no))]} {      set seen($ci(page_no)) 1      incr leaf_pages      incr unused_leaf $ci(page_freebytes)    }  }  btree_close_cursor $csr  # Handle the special case where a index contains no data. In this case  # all statistics are zero, except for the number of leaf pages (1) and  # the unused bytes on leaf pages ($pageSize - 8).  #  if {[llength [array names seen]]==0} {    set leaf_pages 1    set unused_leaf [expr {$pageSize-8}]  }  # Insert the statistics for the index analyzed into the in-memory database.  #  set sql "INSERT INTO space_used VALUES("  append sql [quote $name]  append sql ",[quote $tbl_name]"  append sql ",1"  append sql ",$cnt_leaf_entry"  append sql ",$cnt_leaf_entry"  append sql ",$total_payload"  append sql ",$total_ovfl"  append sql ",$cnt_ovfl"  append sql ",$mx_payload"  append sql ",0"  append sql ",$leaf_pages"  append sql ",$ovfl_pages"  append sql ",0"  append sql ",$unused_leaf"  append sql ",$unused_ovfl"  append sql );  mem eval $sql}# Generate a single line of output in the statistics section of the# report.#proc statline {title value {extra {}}} {  set len [string length $title]  set dots [string range {......................................} $len end]  set len [string length $value]  set sp2 [string range {          } $len end]  if {$extra ne ""} {    set extra " $extra"  }  puts "$title$dots $value$sp2$extra"}# Generate a formatted percentage value for $num/$denom#proc percent {num denom {of {}}} {  if {$denom==0.0} {return ""}  set v [expr {$num*100.0/$denom}]  set of {}  if {$v==100.0 || $v<0.001 || ($v>1.0 && $v<99.0)} {    return [format {%5.1f%% %s} $v $of]  } elseif {$v<0.1 || $v>99.9} {    return [format {%7.3f%% %s} $v $of]  } else {    return [format {%6.2f%% %s} $v $of]  }}proc divide {num denom} {  if {$denom==0} {return 0.0}  return [format %.2f [expr double($num)/double($denom)]]}# Generate a subreport that covers some subset of the database.# the $where clause determines which subset to analyze.#proc subreport {title where} {  global pageSize file_pgcnt  # Query the in-memory database for the sum of various statistics   # for the subset of tables/indices identified by the WHERE clause in  # $where. Note that even if the WHERE clause matches no rows, the  # following query returns exactly one row (because it is an aggregate).  #  # The results of the query are stored directly by SQLite into local 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色婷婷亚洲综合| 国产精品一区二区久久精品爱涩| 国产欧美视频一区二区三区| www精品美女久久久tv| 国产欧美精品国产国产专区 | 亚洲精品福利视频网站| 综合分类小说区另类春色亚洲小说欧美| 国产日产欧美一区二区视频| 久久久激情视频| 亚洲国产成人porn| 精彩视频一区二区| 91网站视频在线观看| 6080午夜不卡| 国产日韩欧美一区二区三区综合| 亚洲欧洲综合另类| 麻豆高清免费国产一区| 国产福利视频一区二区三区| 色噜噜狠狠成人中文综合| 欧美精品在线观看一区二区| 国产偷国产偷精品高清尤物| 亚洲大片一区二区三区| 狠狠色综合日日| 欧美一区二区在线播放| 自拍偷自拍亚洲精品播放| 美女视频网站久久| 欧美专区亚洲专区| 亚洲码国产岛国毛片在线| 国模冰冰炮一区二区| 91精品国产免费| 亚洲成人三级小说| 欧洲色大大久久| 亚洲一区免费在线观看| 高清av一区二区| 中文字幕av一区二区三区免费看| 国产在线精品国自产拍免费| 成人黄色777网| 99精品一区二区三区| 精品国产一区二区亚洲人成毛片| 国产欧美日产一区| thepron国产精品| 久久免费国产精品| 免费观看久久久4p| 99精品黄色片免费大全| 欧美日韩久久一区| 久久综合视频网| 中文字幕日韩av资源站| 国产在线视频精品一区| 国产精品卡一卡二| 一区二区三区中文字幕精品精品| 亚洲chinese男男1069| 美女脱光内衣内裤视频久久网站| 精品午夜久久福利影院 | 亚洲欧洲韩国日本视频| 日韩毛片一二三区| 免费看欧美美女黄的网站| 国产一区二区0| 欧美xfplay| 久久精品国产99国产精品| 91国在线观看| 久久久精品免费观看| 国产成人在线视频网址| 国产亚洲成av人在线观看导航| 五月天网站亚洲| 欧美一区二区网站| 亚洲精品亚洲人成人网| 91亚洲午夜精品久久久久久| 午夜婷婷国产麻豆精品| 欧美精品三级日韩久久| 国产在线播放一区二区三区| 亚洲精品国产第一综合99久久| 欧美精品一级二级三级| 成人激情动漫在线观看| 首页国产欧美日韩丝袜| 午夜精品成人在线视频| 亚洲欧洲99久久| 久久久噜噜噜久久中文字幕色伊伊| 在线免费观看一区| 成人免费看的视频| 麻豆一区二区在线| 免费看欧美女人艹b| 丝袜诱惑亚洲看片| 欧美变态凌虐bdsm| 欧美丰满一区二区免费视频| 日韩视频一区二区三区| 国产精品免费看片| 亚洲午夜国产一区99re久久| 久热成人在线视频| 色国产精品一区在线观看| 91精品国产综合久久福利软件 | 美女视频黄久久| 日本怡春院一区二区| 婷婷开心久久网| 激情综合网天天干| 国产精品一区二区在线观看不卡| 国产精品性做久久久久久| 国产乱人伦偷精品视频不卡| 成人理论电影网| 欧美日韩中文字幕一区| 欧美大片在线观看| 国产精品二三区| 青青青爽久久午夜综合久久午夜| 极品尤物av久久免费看| 东方aⅴ免费观看久久av| 色综合色综合色综合| 日韩一级片在线观看| 国产拍欧美日韩视频二区| 亚洲午夜久久久久久久久久久| 亚洲电影你懂得| 99久久99精品久久久久久| 欧美日韩一级二级| 国产精品免费av| 蜜臀av亚洲一区中文字幕| 欧美亚洲免费在线一区| 91精品久久久久久久99蜜桃 | 国产一区久久久| 欧美三级日韩三级| 亚洲人成在线观看一区二区| 久久精品99国产精品| 欧美日韩国产另类一区| 国产精品色一区二区三区| 久久99国产精品免费| 欧美三级在线看| 亚洲福利一区二区三区| 一本一道波多野结衣一区二区| 国产精品亲子乱子伦xxxx裸| 九九热在线视频观看这里只有精品| 日本精品视频一区二区| 18成人在线视频| 不卡欧美aaaaa| 亚洲激情图片qvod| 在线观看日韩电影| 五月婷婷久久综合| 欧美一级艳片视频免费观看| 另类调教123区| 欧美国产精品专区| 91小视频在线| 亚瑟在线精品视频| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 精品处破学生在线二十三| 日韩成人免费在线| 精品国产免费久久| 粉嫩在线一区二区三区视频| 国产精品久久久久久久岛一牛影视| 成人av片在线观看| 午夜不卡av免费| 国产日韩影视精品| 欧美剧情片在线观看| 国产风韵犹存在线视精品| 亚洲人成7777| 精品1区2区在线观看| 99这里只有久久精品视频| 亚洲3atv精品一区二区三区| 久久久久久亚洲综合| 91久久精品日日躁夜夜躁欧美| 麻豆成人av在线| 亚洲精品一卡二卡| 亚洲欧美日韩久久| 欧美美女网站色| 91一区一区三区| 国产在线国偷精品免费看| 亚洲福利国产精品| 综合色中文字幕| 国产欧美日韩卡一| 精品国产91乱码一区二区三区| 99久久婷婷国产精品综合| 国产精品一二三四区| 九色综合狠狠综合久久| 亚洲午夜视频在线观看| 国产欧美精品一区二区色综合| 欧美成人女星排行榜| 日韩一级大片在线观看| 在线成人免费视频| 欧美日韩mp4| 精品日韩一区二区三区| 制服丝袜av成人在线看| 在线电影国产精品| 欧美哺乳videos| 久久久影视传媒| 国产精品久久国产精麻豆99网站| 国产欧美精品在线观看| 中文字幕一区在线| 亚洲午夜精品网| 青青青伊人色综合久久| 国产又粗又猛又爽又黄91精品| 国产老妇另类xxxxx| 国产福利一区二区| 欧美视频在线不卡| 欧美一级理论性理论a| 欧美麻豆精品久久久久久| 欧美一区二区人人喊爽| 日韩美女视频一区二区在线观看| 欧美一区二区日韩一区二区| 久久亚洲二区三区| 尤物视频一区二区| 蜜臀av性久久久久蜜臀aⅴ流畅 | 亚洲六月丁香色婷婷综合久久 | 91首页免费视频| 日韩一区二区在线观看视频播放 | 蜜臀av性久久久久蜜臀aⅴ流畅| 欧美午夜寂寞影院|