diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-29 06:35:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:29 -0500 |
commit | e0aeffbc85ae42c56970237759d5521ee224826b (patch) | |
tree | da45d25c180eda3d7df6080735780a64a6624829 | |
parent | 4f13ebef5d6711ac121b9c41e2fbbe2cd3b6da0e (diff) | |
download | samba-e0aeffbc85ae42c56970237759d5521ee224826b.tar.gz samba-e0aeffbc85ae42c56970237759d5521ee224826b.tar.bz2 samba-e0aeffbc85ae42c56970237759d5521ee224826b.zip |
r2745: added some example talloc reports
(This used to be commit 10e2a4fd2b85d69b55efa8c36eb553dceda844ad)
-rw-r--r-- | talloc_guide.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/talloc_guide.txt b/talloc_guide.txt index 745426730c..b61e08e708 100644 --- a/talloc_guide.txt +++ b/talloc_guide.txt @@ -343,6 +343,17 @@ top of the tree. If you don't call this function first then passing NULL to talloc_report() or talloc_report_full() won't give you the full tree printout. +Here is a typical talloc report: + +talloc report on 'null_context' (total 267 bytes in 15 blocks) + libcli/auth/spnego_parse.c:55 contains 31 bytes in 2 blocks + libcli/auth/spnego_parse.c:55 contains 31 bytes in 2 blocks + iconv(UTF8,CP850) contains 42 bytes in 2 blocks + libcli/auth/spnego_parse.c:55 contains 31 bytes in 2 blocks + iconv(CP850,UTF8) contains 42 bytes in 2 blocks + iconv(UTF8,UTF-16LE) contains 45 bytes in 2 blocks + iconv(UTF-16LE,UTF8) contains 45 bytes in 2 blocks + =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- void talloc_enable_leak_report_full(void); @@ -357,6 +368,17 @@ top of the tree. If you don't call this function first then passing NULL to talloc_report() or talloc_report_full() won't give you the full tree printout. +Here is a typical full report: + +full talloc report on 'root' (total 18 bytes in 8 blocks) + p1 contains 18 bytes in 7 blocks (ref 0) + r1 contains 13 bytes in 2 blocks (ref 0) + reference to: p2 + p2 contains 1 bytes in 1 blocks (ref 1) + x3 contains 1 bytes in 1 blocks (ref 0) + x2 contains 1 bytes in 1 blocks (ref 0) + x1 contains 1 bytes in 1 blocks (ref 0) + =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- void *talloc_zero(const void *ctx, size_t size); |