[Dovecot] Finding memory leaks
Philipp Brüll
philippbruell at gmail.com
Wed Mar 12 11:17:55 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I try to find a memory leak in a dovecot plugin that I develop. In
order to find it, it would be helpful to print the total amount of
memory that is currently allocated. This print could than spread over
the source code and the memory consumption can be tracked.
I've tried
i_debug("pool size %u",
(unsigned int)pool_alloconly_get_total_alloc_size(system_pool));
But that failed. Does someone has a good advice? I would like to avoid
complex solutions like valgrind.
Best regards,
Philipp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEbBAEBAgAGBQJTIEJjAAoJEMxVSu8VsNAvlnUH+Nf9ueeaer8rpJ3gfaaz9hk8
KlKb0O0pamgwfNy3rqWR0jU0BRKhZaYUeVRv+9tk1qV2cMv11prcB+P0DojKbVuQ
VgqBCYjeHbRXAasmm/39fieJ/c33y67RGKzVR50oNnhmQ/tbtUXwFdNGs5vGKzJs
fZwD7EaoBQd5VFWfOu5oUrKCbIv4YVTIt8rcBah04oDV0nWilpgvFFUHo3+nKNpc
SjSbhoXU/uRsrIPp4PsndCaRdZl4UfadFehu9xBsuZpZfamODozx5oEJhR4ArYMK
gJYZGvSxGURgad/yRkkn3AIKHiJk0/MencjGcmi9ijdoKF4IhZL+k4w4oqjwRw==
=/jzf
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4261 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20140312/6e06b78d/attachment.p7s>
More information about the dovecot
mailing list