<?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>Profiling RAM usage of threads</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93314/profiling-ram-usage-of-threads</link><description>Hi, 
 
 I have an application build on nRF Connect SDK, wherein I have multiple application threads. Is there any tool available for me to profile RAM usage of individual thread so that I can control &amp;amp; monitor overall RAM usage..? 
 
 Thanks,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Jan 2023 09:43:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93314/profiling-ram-usage-of-threads" /><item><title>RE: Profiling RAM usage of threads</title><link>https://devzone.nordicsemi.com/thread/403538?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 09:43:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d6f2033-8052-4a04-b2d4-afb9f25dfcc8</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the long response time. I was on my&amp;nbsp; vacation last week.&lt;/p&gt;
&lt;p&gt;Which Nordic board/chip are you trying with?&amp;nbsp; Can you please try &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/synchronization/README.html"&gt;this sample&lt;/a&gt; from our SDK with &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/debugging/thread-analyzer.html"&gt;Thread Analyzer module&lt;/a&gt; and see the output? You can find the same sample under&amp;nbsp; &amp;nbsp;&lt;span style="color:rgba(0, 0, 255, 1);"&gt;ncs\v2.x.x\zephyr\samples\synchronization.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please attach the screenshot after flashing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Profiling RAM usage of threads</title><link>https://devzone.nordicsemi.com/thread/402063?ContentTypeID=1</link><pubDate>Fri, 23 Dec 2022 10:42:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f794fa6-185b-4d64-ba9d-81a9bde1b3a7</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="115767" url="~/f/nordic-q-a/93314/profiling-ram-usage-of-threads/401930"] The number says like the CPU is using 3258946%[/quote]
&lt;p&gt;This is what I said&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="108934" url="~/f/nordic-q-a/93314/profiling-ram-usage-of-threads/393617"]Because I get junk data in thread analyzer that makes no sense.[/quote]
&lt;p&gt;And wanted your help to solve this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Profiling RAM usage of threads</title><link>https://devzone.nordicsemi.com/thread/401930?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2022 13:04:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d60dc65e-15b1-479e-8794-e30e3a9b747c</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I said so because your number(%) look quite strange. The number says like the CPU is using 3258946% which doesn&amp;#39;t make any sense as a single CPU cannot execute instruction more than 100% of the time.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Profiling RAM usage of threads</title><link>https://devzone.nordicsemi.com/thread/400975?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2022 05:20:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4304fe4-a452-4831-a94a-cfd51112fb8e</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote userid="115767" url="~/f/nordic-q-a/93314/profiling-ram-usage-of-threads/395041"]From the screenshot you shared, the number doesn&amp;#39;t make any sense(Like, thread using 100% of CPU). Seems that your CPU usage is OFF.[/quote]
&lt;p&gt;Can you suggest how you mean&amp;nbsp;&lt;span&gt;Seems that your CPU usage is OFF..?&lt;br /&gt;And how I can enable it..?&lt;br /&gt;&lt;br /&gt;Regards,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Profiling RAM usage of threads</title><link>https://devzone.nordicsemi.com/thread/395041?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2022 08:29:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abfb8b3b-2263-44f3-aa66-420d38f409c8</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;From the screenshot you shared, the number doesn&amp;#39;t make any sense(Like, thread using 100% of CPU). Seems that your CPU usage is OFF. I can also see some broken characters, like &amp;quot;::L&amp;quot; line breaks here and there. Are you&amp;nbsp; trying&amp;nbsp; with different modules for same UART?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Profiling RAM usage of threads</title><link>https://devzone.nordicsemi.com/thread/394263?ContentTypeID=1</link><pubDate>Sun, 06 Nov 2022 08:14:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2aae66f-ac5e-4229-b55e-0518a87836ed</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="115767" url="~/f/nordic-q-a/93314/profiling-ram-usage-of-threads/394062"] Need some more time to check this[/quote]
&lt;p&gt;Yes please&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Profiling RAM usage of threads</title><link>https://devzone.nordicsemi.com/thread/394062?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 08:24:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5926479-94d0-49c8-aea4-6176591d39d4</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Letting you know I am looking into it. Need some more time to check this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Profiling RAM usage of threads</title><link>https://devzone.nordicsemi.com/thread/393617?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 10:42:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02176c6b-a374-4415-b120-bf34019ea17c</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="115767" url="~/f/nordic-q-a/93314/profiling-ram-usage-of-threads/393505"]I am not sure of why you are not using the Thread analyzer module.[/quote]
&lt;p&gt;Because I get junk data in thread analyzer that makes no sense.&lt;br /&gt;Like:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pastedimage1663048340858v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can you suggest as to how I can rectify this 10 digit CPU utilization being shown..?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Profiling RAM usage of threads</title><link>https://devzone.nordicsemi.com/thread/393505?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 14:54:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c216d346-cb0b-461c-a312-947b41738333</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am not sure of why you are not using the Thread analyzer module.&lt;/p&gt;
&lt;p&gt;May be you can use &lt;a href="https://percepio.com/tracealyzer/tracealyzer-for-zephyr/getting-started-with-tracealyzer-for-zephyr-rtos/"&gt;Tracealyzer for zephyr RTOS&lt;/a&gt; and &lt;a href="https://www.zephyrproject.org/tracing-zephyr-applications-with-segger-systemview/"&gt;Segger System viewer&lt;/a&gt; for getting this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Profiling RAM usage of threads</title><link>https://devzone.nordicsemi.com/thread/393153?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2022 08:16:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2814083-8a6d-45ef-9aae-43e7f7c881ac</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any other alternatives to RAM usage profiling other than thread analyzer..?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Profiling RAM usage of threads</title><link>https://devzone.nordicsemi.com/thread/393067?ContentTypeID=1</link><pubDate>Fri, 28 Oct 2022 14:21:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fb13677-8b4c-448b-8c5c-c24fa61008bd</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can make use of the &lt;a href="https://docs.zephyrproject.org/3.0.0/guides/debug_tools/thread-analyzer.html"&gt;Thread Analyzer Module&lt;/a&gt; from Zephyr.This Module enables the option to track thread stack size usage&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>