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

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

?? memleak3.tcl

?? sqlite庫
?? TCL
字號:
#/bin/sh# \exec `which tclsh` $0 "$@"## The author disclaims copyright to this source code.  In place of# a legal notice, here is a blessing:##    May you do good and not evil.#    May you find forgiveness for yourself and forgive others.#    May you share freely, never taking more than you give.######################################################################set doco "This script is a tool to help track down memory leaks in the sqlitelibrary. The library must be compiled with the preprocessor symbolSQLITE_MEMDEBUG set to at least 2. It must be set to 3 to enable stack traces.To use, run the leaky application and save the standard error output.Then, execute this program with the first argument the name of theapplication binary (or interpreter) and the second argument the name of thetext file that contains the collected stderr output.If all goes well a summary of unfreed allocations is printed out. If theGNU C library is in use and SQLITE_DEBUG is 3 or greater a stack trace isprinted out for each unmatched allocation.If the \"-r <n>\" option is passed, then the program stops and prints outthe state of the heap immediately after the <n>th call to malloc() orrealloc().Example:$ ./testfixture ../sqlite/test/select1.test 2> memtrace.out$ tclsh $argv0 ?-r <malloc-number>? ./testfixture memtrace.out"proc usage {} {  set prg [file tail $::argv0]  puts "Usage: $prg ?-r <malloc-number>? <binary file> <mem trace file>"  puts ""  puts [string trim $::doco]  exit -1}proc shift {listvar} {  upvar $listvar l  set ret [lindex $l 0]  set l [lrange $l 1 end]  return $ret}# Argument handling. The following vars are set:## $exe       - the name of the executable (i.e. "testfixture" or "./sqlite3")# $memfile   - the name of the file containing the trace output.# $report_at - The malloc number to stop and report at. Or -1 to read #              all of $memfile.#set report_at -1while {[llength $argv]>2} {  set arg [shift argv]  switch -- $arg {    "-r" {      set report_at [shift argv]    }    default {      usage    }  }}if {[llength $argv]!=2} usageset exe [lindex $argv 0]set memfile [lindex $argv 1]# If stack traces are enabled, the 'addr2line' program is called to# translate a binary stack address into a human-readable form.set addr2line addr2line# When the SQLITE_MEMDEBUG is set as described above, SQLite prints# out a line for each malloc(), realloc() or free() call that the# library makes. If SQLITE_MEMDEBUG is 3, then a stack trace is printed# out before each malloc() and realloc() line.## This program parses each line the SQLite library outputs and updates# the following global Tcl variables to reflect the "current" state of# the heap used by SQLite.#set nBytes 0               ;# Total number of bytes currently allocated.set nMalloc 0              ;# Total number of malloc()/realloc() calls.set nPeak 0                ;# Peak of nBytes.set iPeak 0                ;# nMalloc when nPeak was set.## More detailed state information is stored in the $memmap array. # Each key in the memmap array is the address of a chunk of memory# currently allocated from the heap. The value is a list of the # following form# #     {<number-of-bytes> <malloc id> <stack trace>}#array unset memmapproc process_input {input_file array_name} {  upvar $array_name mem   set input [open $input_file]  set MALLOC {([[:digit:]]+) malloc ([[:digit:]]+) bytes at 0x([[:xdigit:]]+)}  # set STACK {^[[:digit:]]+: STACK: (.*)$}  set STACK {^STACK: (.*)$}  set FREE {[[:digit:]]+ free ([[:digit:]]+) bytes at 0x([[:xdigit:]]+)}  set REALLOC {([[:digit:]]+) realloc ([[:digit:]]+) to ([[:digit:]]+)}  append REALLOC { bytes at 0x([[:xdigit:]]+) to 0x([[:xdigit:]]+)}  set stack ""  while { ![eof $input] } {    set line [gets $input]    if {[regexp $STACK $line dummy stack]} {      # Do nothing. The variable $stack now stores the hexadecimal stack dump      # for the next malloc() or realloc().    } elseif { [regexp $MALLOC $line dummy mallocid bytes addr]  } {      # If this is a 'malloc' line, set an entry in the mem array. Each entry      # is a list of length three, the number of bytes allocated , the malloc      # number and the stack dump when it was allocated.      set mem($addr) [list $bytes "malloc $mallocid" $stack]      set stack ""      # Increase the current heap usage      incr ::nBytes $bytes      # Increase the number of malloc() calls      incr ::nMalloc      if {$::nBytes > $::nPeak} {        set ::nPeak $::nBytes        set ::iPeak $::nMalloc      }    } elseif { [regexp $FREE $line dummy bytes addr] } {      # If this is a 'free' line, remove the entry from the mem array. If the       # entry does not exist, or is the wrong number of bytes, announce a      # problem. This is more likely a bug in the regular expressions for      # this script than an SQLite defect.      if { [lindex $mem($addr) 0] != $bytes } {        error "byte count mismatch"      }      unset mem($addr)       # Decrease the current heap usage      incr ::nBytes [expr -1 * $bytes]    } elseif { [regexp $REALLOC $line dummy mallocid ob b oa a] } {      # "free" the old allocation in the internal model:      incr ::nBytes [expr -1 * $ob]      unset mem($oa);      # "malloc" the new allocation      set mem($a) [list $b "realloc $mallocid" $stack]      incr ::nBytes $b      set stack ""      # Increase the number of malloc() calls      incr ::nMalloc      if {$::nBytes > $::nPeak} {        set ::nPeak $::nBytes        set ::iPeak $::nMalloc      }    } else {      # puts "REJECT: $line"    }    if {$::nMalloc==$::report_at} report  }  close $input}proc printstack {stack} {  set fcount 10  if {[llength $stack]<10} {    set fcount [llength $stack]  }  foreach frame [lrange $stack 1 $fcount] {    foreach {f l} [split [exec $::addr2line -f --exe=$::exe $frame] \n] {}    puts [format "%-30s %s" $f $l]  }  if {[llength $stack]>0 } {puts ""}}proc report {} {  foreach key [array names ::memmap] {    set stack [lindex $::memmap($key) 2]    set bytes [lindex $::memmap($key) 0]    lappend summarymap($stack) $bytes  }  set sorted [list]  foreach stack [array names summarymap] {    set allocs $summarymap($stack)    set sum 0    foreach a $allocs {      incr sum $a    }    lappend sorted [list $sum $stack]  }  set sorted [lsort -integer -index 0 $sorted]  foreach s $sorted {    set sum [lindex $s 0]    set stack [lindex $s 1]    set allocs $summarymap($stack)    puts "$sum bytes in [llength $allocs] chunks ($allocs)"    printstack $stack  }  # Print out summary statistics  puts "Total allocations            : $::nMalloc"  puts "Total outstanding allocations: [array size ::memmap]"   puts "Current heap usage           : $::nBytes bytes"  puts "Peak heap usage              : $::nPeak bytes (malloc #$::iPeak)"  exit}process_input $memfile memmapreport

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产电影在线观看| 一区二区不卡在线播放| 国产精品高潮呻吟久久| 视频一区免费在线观看| av成人免费在线| 欧美videos大乳护士334| 一区二区三区欧美| 成人高清伦理免费影院在线观看| 4hu四虎永久在线影院成人| 国产精品人成在线观看免费| 精品一区二区三区在线观看国产| 日本精品一区二区三区四区的功能| www久久精品| 久久草av在线| 欧美一区二区日韩| 日韩精品一二三区| 欧美日韩一区二区在线视频| 亚洲欧美视频一区| 99久久亚洲一区二区三区青草| 精品福利一二区| 久久精品国产一区二区三区免费看| 欧美亚洲国产一区在线观看网站| 国产精品传媒视频| 成人动漫一区二区在线| 欧美国产综合色视频| 国产精品456| 久久久久久黄色| 国产精品一区二区久激情瑜伽| 精品人伦一区二区色婷婷| 青青草一区二区三区| 在线91免费看| 日韩av电影免费观看高清完整版在线观看| 91久久精品一区二区三区| 樱桃视频在线观看一区| 在线精品视频免费播放| 亚洲午夜在线电影| 7777精品伊人久久久大香线蕉超级流畅| 亚洲女与黑人做爰| 欧美色图天堂网| 爽好多水快深点欧美视频| 欧美一二三四区在线| 精品一区二区三区久久| 久久久久久麻豆| 波多野结衣中文字幕一区二区三区| 久久精品男人的天堂| 99这里只有久久精品视频| 亚洲欧美综合另类在线卡通| 色偷偷久久一区二区三区| 亚洲女同一区二区| 欧美一区二区三区喷汁尤物| 蜜臀av性久久久久av蜜臀妖精| 久久综合精品国产一区二区三区 | 欧美肥妇bbw| 久久综合综合久久综合| 欧美激情中文字幕| 在线精品国精品国产尤物884a| 日韩中文字幕一区二区三区| 精品理论电影在线| 91女厕偷拍女厕偷拍高清| 视频在线观看一区| 国产人成亚洲第一网站在线播放| av一区二区三区黑人| 亚洲第一激情av| 日韩久久免费av| 91久久精品国产91性色tv| 蜜臀久久久久久久| 成人欧美一区二区三区1314| 欧美日韩二区三区| 高清国产一区二区三区| 亚洲影院久久精品| 久久久综合激的五月天| 91久久精品一区二区| 国产一区二区三区视频在线播放| 自拍av一区二区三区| 日韩一区二区免费在线电影| 91浏览器在线视频| 国产一区二区0| 天天操天天干天天综合网| 国产欧美日韩激情| 日韩三级视频在线看| 欧美亚洲愉拍一区二区| 波多野洁衣一区| 麻豆高清免费国产一区| 亚洲一区二区三区四区在线免费观看 | 不卡的av在线播放| 激情丁香综合五月| 亚洲电影你懂得| 国产精品久久久久久久第一福利| 日韩亚洲欧美综合| 在线观看中文字幕不卡| 波波电影院一区二区三区| 国内国产精品久久| 日韩经典一区二区| 亚洲制服丝袜在线| 亚洲男人电影天堂| 亚洲色欲色欲www在线观看| 久久久久国产精品厨房| 精品国产区一区| 91精品国产综合久久精品性色| 91国产成人在线| 91视频www| 91在线观看视频| 成人18视频日本| 91在线码无精品| eeuss鲁片一区二区三区| 成人avav在线| 成人一区二区三区| 成人午夜免费视频| 国产在线一区二区综合免费视频| 日韩电影在线一区| 秋霞成人午夜伦在线观看| 视频一区视频二区中文| 香港成人在线视频| 日本中文在线一区| 麻豆高清免费国产一区| 精品一区二区三区在线视频| 国产一区二区调教| 国产精品12区| www.欧美精品一二区| 一本久久综合亚洲鲁鲁五月天 | 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 成人国产精品视频| 99久久精品免费看国产| 日本福利一区二区| 欧美日韩一区二区欧美激情| 欧美人牲a欧美精品| 91精品黄色片免费大全| 日韩一区二区免费电影| 亚洲精品一区二区三区99| 久久精品一区四区| 亚洲欧洲日产国码二区| 一级精品视频在线观看宜春院 | 欧美日韩国产一级片| 91精品国产高清一区二区三区蜜臀| 91精品免费在线| 久久综合色之久久综合| 日本一区二区综合亚洲| 亚洲美女精品一区| 日韩av中文在线观看| 国v精品久久久网| 99精品欧美一区二区三区综合在线| 色综合网色综合| 日韩欧美高清dvd碟片| 国产欧美中文在线| 亚洲成人av中文| 国产在线精品一区二区| 91在线观看视频| 日韩一区二区免费高清| 国产精品萝li| 视频一区视频二区中文| 国产成人在线色| 91福利区一区二区三区| 久久综合国产精品| 亚洲综合区在线| 国产麻豆欧美日韩一区| 欧洲日韩一区二区三区| 欧美精品一区二区三区很污很色的| 国产精品久久777777| 久久精品国产在热久久| 色婷婷亚洲综合| 久久先锋影音av鲁色资源| 亚洲美女屁股眼交3| 久久国产尿小便嘘嘘| 91官网在线免费观看| 欧美高清在线视频| 奇米精品一区二区三区在线观看| 99精品视频在线观看免费| 日韩欧美一区二区视频| 日韩一区有码在线| 国产乱码精品一品二品| 日韩一级片网址| 亚洲一区二区三区在线看| 成人午夜在线免费| 日韩一区二区免费在线观看| 亚洲综合在线视频| 不卡的av电影| 精品动漫一区二区三区在线观看| 亚洲国产精品一区二区www在线 | 午夜亚洲国产au精品一区二区| 成人美女视频在线观看18| 日韩一区二区三区观看| 亚洲国产乱码最新视频| 色婷婷久久综合| 《视频一区视频二区| 国产黄色精品视频| 久久先锋影音av鲁色资源| 久久国产精品72免费观看| 欧美精品v国产精品v日韩精品 | 国产精品美女久久久久高潮| 免费一级欧美片在线观看| 欧美性受xxxx黑人xyx性爽| 亚洲欧洲日本在线| 99热精品国产| 国产精品乱码一区二区三区软件| 极品少妇xxxx偷拍精品少妇| 欧美日韩免费在线视频| 亚洲一区欧美一区| 欧美日韩精品综合在线| 亚洲午夜在线电影| 欧美福利电影网|