summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite/sqlite/tool/memleak2.awk
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
committerSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
commit88ec761548b66f58acc1a86cdd0fc164ca925476 (patch)
treed0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/pdo_sqlite/sqlite/tool/memleak2.awk
parent268984b4787e797db6054313fc9ba3b9e845306e (diff)
downloadphp-git-PECL_OPENSSL.tar.gz
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/pdo_sqlite/sqlite/tool/memleak2.awk')
-rw-r--r--ext/pdo_sqlite/sqlite/tool/memleak2.awk29
1 files changed, 0 insertions, 29 deletions
diff --git a/ext/pdo_sqlite/sqlite/tool/memleak2.awk b/ext/pdo_sqlite/sqlite/tool/memleak2.awk
deleted file mode 100644
index 5d81b70d8d..0000000000
--- a/ext/pdo_sqlite/sqlite/tool/memleak2.awk
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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;"
-}