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

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

?? spaceanal.tcl

?? sqlite庫
?? TCL
?? 第 1 頁 / 共 2 頁
字號:
  # variables (i.e. $nentry, $nleaf etc.).  #  mem eval "    SELECT      int(sum(nentry)) AS nentry,      int(sum(leaf_entries)) AS nleaf,      int(sum(payload)) AS payload,      int(sum(ovfl_payload)) AS ovfl_payload,      max(mx_payload) AS mx_payload,      int(sum(ovfl_cnt)) as ovfl_cnt,      int(sum(leaf_pages)) AS leaf_pages,      int(sum(int_pages)) AS int_pages,      int(sum(ovfl_pages)) AS ovfl_pages,      int(sum(leaf_unused)) AS leaf_unused,      int(sum(int_unused)) AS int_unused,      int(sum(ovfl_unused)) AS ovfl_unused    FROM space_used WHERE $where" {} {}  # Output the sub-report title, nicely decorated with * characters.  #  puts ""  set len [string length $title]  set stars [string repeat * [expr 65-$len]]  puts "*** $title $stars"  puts ""  # Calculate statistics and store the results in TCL variables, as follows:  #  # total_pages: Database pages consumed.  # total_pages_percent: Pages consumed as a percentage of the file.  # storage: Bytes consumed.  # payload_percent: Payload bytes used as a percentage of $storage.  # total_unused: Unused bytes on pages.  # avg_payload: Average payload per btree entry.  # avg_fanout: Average fanout for internal pages.  # avg_unused: Average unused bytes per btree entry.  # ovfl_cnt_percent: Percentage of btree entries that use overflow pages.  #  set total_pages [expr {$leaf_pages+$int_pages+$ovfl_pages}]  set total_pages_percent [percent $total_pages $file_pgcnt]  set storage [expr {$total_pages*$pageSize}]  set payload_percent [percent $payload $storage {of storage consumed}]  set total_unused [expr {$ovfl_unused+$int_unused+$leaf_unused}]  set avg_payload [divide $payload $nleaf]  set avg_unused [divide $total_unused $nleaf]  if {$int_pages>0} {    # TODO: Is this formula correct?    set nTab [mem eval "      SELECT count(*) FROM (          SELECT DISTINCT tblname FROM space_used WHERE $where AND is_index=0      )    "]    set avg_fanout [mem eval "      SELECT (sum(leaf_pages+int_pages)-$nTab)/sum(int_pages) FROM space_used          WHERE $where AND is_index = 0    "]    set avg_fanout [format %.2f $avg_fanout]  }  set ovfl_cnt_percent [percent $ovfl_cnt $nleaf {of all entries}]  # Print out the sub-report statistics.  #  statline {Percentage of total database} $total_pages_percent  statline {Number of entries} $nleaf  statline {Bytes of storage consumed} $storage  statline {Bytes of payload} $payload $payload_percent  statline {Average payload per entry} $avg_payload  statline {Average unused bytes per entry} $avg_unused  if {[info exists avg_fanout]} {    statline {Average fanout} $avg_fanout  }  statline {Maximum payload per entry} $mx_payload  statline {Entries that use overflow} $ovfl_cnt $ovfl_cnt_percent  if {$int_pages>0} {    statline {Index pages used} $int_pages  }  statline {Primary pages used} $leaf_pages  statline {Overflow pages used} $ovfl_pages  statline {Total pages used} $total_pages  if {$int_unused>0} {    set int_unused_percent \         [percent $int_unused [expr {$int_pages*$pageSize}] {of index space}]    statline "Unused bytes on index pages" $int_unused $int_unused_percent  }  statline "Unused bytes on primary pages" $leaf_unused \     [percent $leaf_unused [expr {$leaf_pages*$pageSize}] {of primary space}]  statline "Unused bytes on overflow pages" $ovfl_unused \     [percent $ovfl_unused [expr {$ovfl_pages*$pageSize}] {of overflow space}]  statline "Unused bytes on all pages" $total_unused \               [percent $total_unused $storage {of all space}]  return 1}# Calculate the overhead in pages caused by auto-vacuum. ## This procedure calculates and returns the number of pages used by the # auto-vacuum 'pointer-map'. If the database does not support auto-vacuum,# then 0 is returned. The two arguments are the size of the database file in# pages and the page size used by the database (in bytes).proc autovacuum_overhead {filePages pageSize} {  # Read the value of meta 4. If non-zero, then the database supports  # auto-vacuum. It would be possible to use "PRAGMA auto_vacuum" instead,  # but that would not work if the SQLITE_OMIT_PRAGMA macro was defined  # when the library was built.  set meta4 [lindex [btree_get_meta $::DB] 4]  # If the database is not an auto-vacuum database or the file consists  # of one page only then there is no overhead for auto-vacuum. Return zero.  if {0==$meta4 || $filePages==1} {    return 0  }  # The number of entries on each pointer map page. The layout of the  # database file is one pointer-map page, followed by $ptrsPerPage other  # pages, followed by a pointer-map page etc. The first pointer-map page  # is the second page of the file overall.  set ptrsPerPage [expr double($pageSize/5)]  # Return the number of pointer map pages in the database.  return [expr int(ceil( ($filePages-1.0)/($ptrsPerPage+1.0) ))]}# Calculate the summary statistics for the database and store the results# in TCL variables. They are output below. Variables are as follows:## pageSize:      Size of each page in bytes.# file_bytes:    File size in bytes.# file_pgcnt:    Number of pages in the file.# file_pgcnt2:   Number of pages in the file (calculated).# av_pgcnt:      Pages consumed by the auto-vacuum pointer-map.# av_percent:    Percentage of the file consumed by auto-vacuum pointer-map.# inuse_pgcnt:   Data pages in the file.# inuse_percent: Percentage of pages used to store data.# free_pgcnt:    Free pages calculated as (<total pages> - <in-use pages>)# free_pgcnt2:   Free pages in the file according to the file header.# free_percent:  Percentage of file consumed by free pages (calculated).# free_percent2: Percentage of file consumed by free pages (header).# ntable:        Number of tables in the db.# nindex:        Number of indices in the db.# nautoindex:    Number of indices created automatically.# nmanindex:     Number of indices created manually.# user_payload:  Number of bytes of payload in table btrees #                (not including sqlite_master)# user_percent:  $user_payload as a percentage of total file size.set file_bytes  [file size $file_to_analyze]set file_pgcnt  [expr {$file_bytes/$pageSize}]set av_pgcnt    [autovacuum_overhead $file_pgcnt $pageSize]set av_percent  [percent $av_pgcnt $file_pgcnt]set sql {SELECT sum(leaf_pages+int_pages+ovfl_pages) FROM space_used}set inuse_pgcnt   [expr int([mem eval $sql])]set inuse_percent [percent $inuse_pgcnt $file_pgcnt]set free_pgcnt    [expr $file_pgcnt-$inuse_pgcnt-$av_pgcnt]set free_percent  [percent $free_pgcnt $file_pgcnt]set free_pgcnt2   [lindex [btree_get_meta $DB] 0]set free_percent2 [percent $free_pgcnt2 $file_pgcnt]set file_pgcnt2 [expr {$inuse_pgcnt+$free_pgcnt2+$av_pgcnt}]set ntable [db eval {SELECT count(*)+1 FROM sqlite_master WHERE type='table'}]set nindex [db eval {SELECT count(*) FROM sqlite_master WHERE type='index'}]set sql {SELECT count(*) FROM sqlite_master WHERE name LIKE 'sqlite_autoindex%'}set nautoindex [db eval $sql]set nmanindex [expr {$nindex-$nautoindex}]# set total_payload [mem eval "SELECT sum(payload) FROM space_used"]set user_payload [mem one {SELECT int(sum(payload)) FROM space_used     WHERE NOT is_index AND name NOT LIKE 'sqlite_master'}]set user_percent [percent $user_payload $file_bytes]# Output the summary statistics calculated above.#puts "/** Disk-Space Utilization Report For $file_to_analyze"puts "*** As of [clock format [clock seconds] -format {%Y-%b-%d %H:%M:%S}]"puts ""statline {Page size in bytes} $pageSizestatline {Pages in the whole file (measured)} $file_pgcntstatline {Pages in the whole file (calculated)} $file_pgcnt2statline {Pages that store data} $inuse_pgcnt $inuse_percentstatline {Pages on the freelist (per header)} $free_pgcnt2 $free_percent2statline {Pages on the freelist (calculated)} $free_pgcnt $free_percentstatline {Pages of auto-vacuum overhead} $av_pgcnt $av_percentstatline {Number of tables in the database} $ntablestatline {Number of indices} $nindexstatline {Number of named indices} $nmanindexstatline {Automatically generated indices} $nautoindexstatline {Size of the file in bytes} $file_bytesstatline {Bytes of user payload stored} $user_payload $user_percent# Output table rankings#puts ""puts "*** Page counts for all tables with their indices ********************"puts ""mem eval {SELECT tblname, count(*) AS cnt,               int(sum(int_pages+leaf_pages+ovfl_pages)) AS size          FROM space_used GROUP BY tblname ORDER BY size+0 DESC, tblname} {} {  statline [string toupper $tblname] $size [percent $size $file_pgcnt]}# Output subreports#if {$nindex>0} {  subreport {All tables and indices} 1}subreport {All tables} {NOT is_index}if {$nindex>0} {  subreport {All indices} {is_index}}foreach tbl [mem eval {SELECT name FROM space_used WHERE NOT is_index                       ORDER BY name}] {  regsub ' $tbl '' qn  set name [string toupper $tbl]  set n [mem eval "SELECT count(*) FROM space_used WHERE tblname='$qn'"]  if {$n>1} {    subreport "Table $name and all its indices" "tblname='$qn'"    subreport "Table $name w/o any indices" "name='$qn'"    subreport "Indices of table $name" "tblname='$qn' AND is_index"  } else {    subreport "Table $name" "name='$qn'"  }}# Output instructions on what the numbers above mean.#puts {*** Definitions ******************************************************Page size in bytes    The number of bytes in a single page of the database file.      Usually 1024.Number of pages in the whole file}puts \"    The number of $pageSize-byte pages that go into forming the complete    database"puts \{Pages that store data    The number of pages that store data, either as primary B*Tree pages or    as overflow pages.  The number at the right is the data pages divided by    the total number of pages in the file.Pages on the freelist    The number of pages that are not currently in use but are reserved for    future use.  The percentage at the right is the number of freelist pages    divided by the total number of pages in the file.Pages of auto-vacuum overhead    The number of pages that store data used by the database to facilitate    auto-vacuum. This is zero for databases that do not support auto-vacuum.Number of tables in the database    The number of tables in the database, including the SQLITE_MASTER table    used to store schema information.Number of indices    The total number of indices in the database.Number of named indices    The number of indices created using an explicit CREATE INDEX statement.Automatically generated indices    The number of indices used to implement PRIMARY KEY or UNIQUE constraints    on tables.Size of the file in bytes    The total amount of disk space used by the entire database files.Bytes of user payload stored    The total number of bytes of user payload stored in the database. The    schema information in the SQLITE_MASTER table is not counted when    computing this number.  The percentage at the right shows the payload    divided by the total file size.Percentage of total database    The amount of the complete database file that is devoted to storing    information described by this category.Number of entries    The total number of B-Tree key/value pairs stored under this category.Bytes of storage consumed    The total amount of disk space required to store all B-Tree entries    under this category.  The is the total number of pages used times    the pages size.Bytes of payload    The amount of payload stored under this category.  Payload is the data    part of table entries and the key part of index entries.  The percentage    at the right is the bytes of payload divided by the bytes of storage     consumed.Average payload per entry    The average amount of payload on each entry.  This is just the bytes of    payload divided by the number of entries.Average unused bytes per entry    The average amount of free space remaining on all pages under this    category on a per-entry basis.  This is the number of unused bytes on    all pages divided by the number of entries.Maximum payload per entry    The largest payload size of any entry.Entries that use overflow    The number of entries that user one or more overflow pages.Total pages used    This is the number of pages used to hold all information in the current    category.  This is the sum of index, primary, and overflow pages.Index pages used    This is the number of pages in a table B-tree that hold only key (rowid)    information and no data.Primary pages used    This is the number of B-tree pages that hold both key and data.Overflow pages used    The total number of overflow pages used for this category.Unused bytes on index pages    The total number of bytes of unused space on all index pages.  The    percentage at the right is the number of unused bytes divided by the    total number of bytes on index pages.Unused bytes on primary pages    The total number of bytes of unused space on all primary pages.  The    percentage at the right is the number of unused bytes divided by the    total number of bytes on primary pages.Unused bytes on overflow pages    The total number of bytes of unused space on all overflow pages.  The    percentage at the right is the number of unused bytes divided by the    total number of bytes on overflow pages.Unused bytes on all pages    The total number of bytes of unused space on all primary and overflow     pages.  The percentage at the right is the number of unused bytes     divided by the total number of bytes.}# Output a dump of the in-memory database. This can be used for more# complex offline analysis.#puts "**********************************************************************"puts "The entire text of this report can be sourced into any SQL database"puts "engine for further analysis.  All of the text above is an SQL comment."puts "The data used to generate this report follows:"puts "*/"puts "BEGIN;"puts $tabledefunset -nocomplain xmem eval {SELECT * FROM space_used} x {  puts -nonewline "INSERT INTO space_used VALUES"  set sep (  foreach col $x(*) {    set v $x($col)    if {$v=="" || ![string is double $v]} {set v [quote $v]}    puts -nonewline $sep$v    set sep ,  }  puts ");"}puts "COMMIT;"} err]} {  puts "ERROR: $err"  puts $errorInfo  exit 1}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品中文字幕一区二区| 欧美va亚洲va在线观看蝴蝶网| 7799精品视频| 亚洲欧美综合色| 国产原创一区二区| 91精品国产手机| 亚洲激情成人在线| 丁香亚洲综合激情啪啪综合| 精品污污网站免费看| 《视频一区视频二区| 国产在线精品一区二区| 日韩一级完整毛片| 婷婷久久综合九色国产成人| 色悠久久久久综合欧美99| 国产亚洲一区字幕| 久久精品免费观看| 9191成人精品久久| 亚洲福利视频三区| 97精品国产露脸对白| 久久久99精品免费观看| 理论片日本一区| 日韩欧美中文字幕制服| 日韩av在线播放中文字幕| 色先锋aa成人| 亚洲视频免费在线观看| 丁香婷婷综合色啪| 国产午夜三级一区二区三| 国产一区二区三区在线观看免费 | 日本欧美肥老太交大片| 欧美日韩亚洲综合在线| 亚洲高清不卡在线| 欧美日韩精品一区二区天天拍小说| 中文字幕亚洲欧美在线不卡| 99精品视频中文字幕| 国产精品午夜久久| av电影一区二区| 亚洲丝袜精品丝袜在线| 一本一道波多野结衣一区二区| 亚洲视频在线观看一区| 色香色香欲天天天影视综合网| 亚洲欧美一区二区三区极速播放 | 亚洲电影一级片| 色激情天天射综合网| 亚洲精品中文字幕乱码三区| 色哟哟欧美精品| 午夜av一区二区| 日韩午夜在线播放| 国产一区二区在线观看免费| 国产亚洲人成网站| 97精品久久久午夜一区二区三区| 亚洲国产欧美日韩另类综合 | 国产麻豆成人传媒免费观看| 久久精品视频在线免费观看| 成人免费av在线| 亚洲国产va精品久久久不卡综合| 777欧美精品| 国产99久久久精品| 亚洲精品你懂的| 日韩女优制服丝袜电影| av在线不卡免费看| 午夜精品一区二区三区电影天堂| 日韩免费高清电影| 99久久精品费精品国产一区二区| 午夜伦欧美伦电影理论片| 久久久久久久久久久久久女国产乱| 91啦中文在线观看| 麻豆精品一区二区| 亚洲欧美aⅴ...| 欧美国产精品专区| 欧美系列一区二区| 国产麻豆成人传媒免费观看| 亚洲一区在线看| 中文字幕免费一区| 日韩一区二区在线看| 91看片淫黄大片一级在线观看| 日本成人在线电影网| 亚洲精品亚洲人成人网在线播放| 精品日韩99亚洲| 色999日韩国产欧美一区二区| 狠狠色丁香九九婷婷综合五月| 亚洲欧美一区二区三区极速播放| 欧美成人一级视频| 欧美私模裸体表演在线观看| 岛国一区二区三区| 久久精品国产一区二区| 一区二区三区成人在线视频| 亚洲欧美日韩中文字幕一区二区三区| 亚洲制服丝袜av| 欧美激情在线一区二区| 制服视频三区第一页精品| 色婷婷精品久久二区二区蜜臀av| 国产一区二区三区| 日韩av在线免费观看不卡| 一区二区不卡在线视频 午夜欧美不卡在 | 国产成人综合在线播放| 日韩激情av在线| 伊人夜夜躁av伊人久久| 中文字幕综合网| 日本一区二区免费在线| 欧美精品一区二区精品网| 91精品国产综合久久小美女| 日本国产一区二区| 在线看日本不卡| 91麻豆福利精品推荐| av亚洲精华国产精华| 国产成人自拍高清视频在线免费播放| 奇米一区二区三区av| 日本一区中文字幕| 天天色图综合网| 亚洲不卡一区二区三区| 亚洲午夜精品网| 亚洲成人av中文| 亚洲mv在线观看| 日韩成人一区二区| 日韩av电影免费观看高清完整版| 日韩成人dvd| 欧美aaa在线| 国产一区二区91| av电影天堂一区二区在线观看| 成人的网站免费观看| 色综合久久六月婷婷中文字幕| 色一情一乱一乱一91av| 欧美日韩黄视频| 91精品国产日韩91久久久久久| 日韩美女一区二区三区四区| 精品免费视频一区二区| 久久影音资源网| 国产精品亲子伦对白| 亚洲色图视频免费播放| 亚洲在线观看免费视频| 日韩vs国产vs欧美| 国产精品18久久久| 91免费在线看| 91精品国产一区二区| 久久久精品国产免大香伊| 国产精品视频在线看| 亚洲综合色网站| 韩国欧美国产1区| 成人午夜电影小说| 欧美天堂一区二区三区| 日韩一级高清毛片| 国产精品久久久久久亚洲毛片| 亚洲精品视频观看| 免费看欧美女人艹b| 成人在线综合网| 欧美日韩国产三级| 欧美国产日本韩| 午夜视频久久久久久| 国产精品996| 欧美日韩国产影片| 国产欧美日本一区二区三区| 一区二区三区在线观看动漫| 久久99国产精品久久99| 一本色道久久综合精品竹菊| 91精品一区二区三区在线观看| 国产三级精品在线| 午夜精品成人在线视频| av在线播放成人| 7777精品伊人久久久大香线蕉的| 久久精品夜夜夜夜久久| 亚洲风情在线资源站| 成人黄色在线网站| 日韩一区二区三区免费看| 亚洲色图都市小说| 国产一区 二区 三区一级| 欧美图区在线视频| 亚洲欧洲精品一区二区三区不卡| 水野朝阳av一区二区三区| 91视频观看免费| 国产欧美一区二区三区在线看蜜臀| 午夜一区二区三区视频| av一二三不卡影片| 国产片一区二区| 黑人巨大精品欧美一区| 91精品一区二区三区在线观看| 一区二区在线看| 成+人+亚洲+综合天堂| 日韩欧美国产麻豆| 日韩极品在线观看| 欧美日韩国产影片| 亚洲综合一区二区三区| eeuss鲁片一区二区三区 | 欧美二区乱c少妇| 亚洲影院久久精品| 色一情一伦一子一伦一区| 国产精品色婷婷| 国产成人精品免费网站| 精品少妇一区二区三区日产乱码| 午夜av一区二区| 欧美精品乱人伦久久久久久| 午夜私人影院久久久久| 在线观看不卡视频| 亚洲一区二区在线免费看| 色老汉av一区二区三区| 一区二区三区久久久| 97se亚洲国产综合在线| 亚洲欧美日韩小说| 色婷婷综合久久久| 一区二区久久久久久| 欧美亚洲国产bt|