https://osmocom.org/https://osmocom.org/favicon.ico?16647414092021-03-24T12:33:55ZOpen Source Mobile Communicationslibosmocore - Feature #4590: Export talloc data as counters for better memory leakage monitoring in productionhttps://osmocom.org/issues/4590?journal_id=217112021-03-24T12:33:55Zlaforge
<ul><li><strong>Category</strong> set to <i>libosmocore</i></li></ul> libosmocore - Feature #4590: Export talloc data as counters for better memory leakage monitoring in productionhttps://osmocom.org/issues/4590?journal_id=248872022-09-12T15:53:36Zdaniel
<ul></ul><p>It looks like <code>talloc_report_depth_cb()</code> can be used for that:<br /><a class="external" href="https://talloc.samba.org/talloc/doc/html/group__talloc__debug.html">https://talloc.samba.org/talloc/doc/html/group__talloc__debug.html</a></p>
<p><code>talloc_full_report_printf()</code> uses it under the hood, see also here:<br /><a class="external" href="https://github.com/samba-team/samba/blob/master/lib/util/talloc_report_printf.c">https://github.com/samba-team/samba/blob/master/lib/util/talloc_report_printf.c</a></p>