<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Heap mangment</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119676/heap-mangment</link><description>Hello, is it possbile to get continual data about how much of the heap is used in runtime the same way you can get about the stack?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Mar 2025 14:08:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119676/heap-mangment" /><item><title>RE: Heap mangment</title><link>https://devzone.nordicsemi.com/thread/526573?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 14:08:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a500fd43-3e5d-475a-8360-61bd2017eb2f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you use a zephyr heap, you can register a heap listener:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/apidoc/latest/group__heap__listener__apis.html"&gt;https://docs.zephyrproject.org/apidoc/latest/group__heap__listener__apis.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Although this is a somewhat different subject, there&amp;#39;s discussion around the API here:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93660/default-system-heap-listener"&gt;Default system heap listener&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>