svn commit: samba r2745 - in branches/SAMBA_4_0: .
tridge at samba.org
tridge at samba.org
Wed Sep 29 06:35:35 GMT 2004
Author: tridge
Date: 2004-09-29 06:35:34 +0000 (Wed, 29 Sep 2004)
New Revision: 2745
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0&rev=2745&nolog=1
Log:
added some example talloc reports
Modified:
branches/SAMBA_4_0/talloc_guide.txt
Changeset:
Modified: branches/SAMBA_4_0/talloc_guide.txt
===================================================================
--- branches/SAMBA_4_0/talloc_guide.txt 2004-09-29 06:31:14 UTC (rev 2744)
+++ branches/SAMBA_4_0/talloc_guide.txt 2004-09-29 06:35:34 UTC (rev 2745)
@@ -343,7 +343,18 @@
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,7 +368,18 @@
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);
More information about the samba-cvs
mailing list