mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-27 05:34:17 +00:00
add sqlite 3.3.8 to in tree libs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3735 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
3b35430557
commit
165f180162
387 files changed
+234653
No files matched your search
@@ -0,0 +1,29 @@
|
||||
# This AWK script reads the output of testfixture when compiled for memory
|
||||
# debugging. It generates SQL commands that can be fed into an sqlite
|
||||
# instance to determine what memory is never freed. A typical usage would
|
||||
# be as follows:
|
||||
#
|
||||
# make -f memleak.mk fulltest 2>mem.out
|
||||
# awk -f ../sqlite/tool/memleak2.awk mem.out | ./sqlite :memory:
|
||||
#
|
||||
# The job performed by this script is the same as that done by memleak.awk.
|
||||
# The difference is that this script uses much less memory when the size
|
||||
# of the mem.out file is huge.
|
||||
#
|
||||
BEGIN {
|
||||
print "CREATE TABLE mem(loc INTEGER PRIMARY KEY, src);"
|
||||
}
|
||||
/[0-9]+ malloc / {
|
||||
print "INSERT INTO mem VALUES(" strtonum($6) ",'" $0 "');"
|
||||
}
|
||||
/[0-9]+ realloc / {
|
||||
print "INSERT INTO mem VALUES(" strtonum($10) \
|
||||
",(SELECT src FROM mem WHERE loc=" strtonum($8) "));"
|
||||
print "DELETE FROM mem WHERE loc=" strtonum($8) ";"
|
||||
}
|
||||
/[0-9]+ free / {
|
||||
print "DELETE FROM mem WHERE loc=" strtonum($6) ";"
|
||||
}
|
||||
END {
|
||||
print "SELECT src FROM mem;"
|
||||
}
|
||||
Reference in new issue
Block a user