<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPCXpresso IDE中的主题 Re: Run Time stats</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Run-Time-stats/m-p/626293#M32482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should get you started on LPC1549, in FreeRTOSConfig.h;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL1|=(1&amp;lt;&amp;lt;1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define portGET_RUN_TIME_COUNTER_VALUE() ((((uint64_t)LPC_RIT-&amp;gt;COUNTER_H)&amp;lt;&amp;lt;32)|((uint64_t)(LPC_RIT-&amp;gt;COUNTER)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DAVE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2016 14:19:34 GMT</pubDate>
    <dc:creator>dmarples</dc:creator>
    <dc:date>2016-10-12T14:19:34Z</dc:date>
    <item>
      <title>Run Time stats</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Run-Time-stats/m-p/626292#M32481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;hi all,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I am try to Understand and use this function vTaskGetRunTimeStats (). &lt;/SPAN&gt;&lt;SPAN&gt;I found the paper we aim FreeRTOS website the instruction and example Were so unclear.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;H3 id="toc-hId-1564612240" style="color: #1a3065; background-color: #ffffff; font-size: 18px;"&gt;&lt;A name="vTaskGetRunTimeStats" style="color: #1a3065;" target="_blank"&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;SPAN&gt;vTaskGetRunTimeStats&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN style="color: #202020; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;task.h&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="font-weight: bold; font-size: 13px;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;void vTaskGetRunTimeStats (char * pcWriteBuffer); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="color: #202020; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;See the &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="http://www.freertos.org/rtos-run-time-stats.html" rel="nofollow noopener noreferrer" style="color: #0000ee;" target="_blank"&gt;&lt;SPAN&gt;&lt;SPAN&gt;Run Time Stats&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;SPAN&gt; page for a full description of this feature.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #202020; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;configGENERATE_RUN_TIME_STATS and configUSE_STATS_FORMATTING_FUNCTIONS Both must be defined as 1 for this function to be available. &lt;/SPAN&gt;&lt;SPAN&gt;The implementation must aussi Then Provide definitions for portCONFIGURE_TIMER_FOR_RUN_TIME_STATS () and portGET_RUN_TIME_COUNTER_VALUE to configure a peripheral timer / counter and return the current timer count value respectivement. &lt;/SPAN&gt;&lt;SPAN&gt;The counter shoulds be at least 10 times the frequency of the tick count.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #202020; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;NOTE: This function will disable interrupts for ict duration. &lt;/SPAN&gt;&lt;SPAN&gt;It is not Intended for use as normal runtime implementation goal debug aid.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #202020; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;vTaskGetRunTimeStats () calls &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="http://www.freertos.org/uxTaskGetSystemState.html" rel="nofollow noopener noreferrer" style="color: #0000ee;" target="_blank"&gt;&lt;SPAN&gt;&lt;SPAN&gt;uxTaskGetSystemState ()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;SPAN&gt; , Then formats the raw data generated by uxTaskGetSystemState () into a human readable (ASCII) That table shows the amount of time Each task HAS spent in the Running state (how much CPU time Each task HAS Consumed) . &lt;/SPAN&gt;&lt;SPAN&gt;The data is Provided Both have an absolute and a percentage value. &lt;/SPAN&gt;&lt;SPAN&gt;The resolution of the absolute value is dependent on the frequency of the clock run time stats provided by the application.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #202020; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;vTaskGetRunTimeStats () is a utility function Provided for convenience only. &lt;/SPAN&gt;&lt;SPAN&gt;It is not regarded share of the kernel. &lt;/SPAN&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="http://www.freertos.org/a00021.html#vTaskList" rel="nofollow noopener noreferrer" style="color: #0000ee;" target="_blank"&gt;&lt;SPAN&gt;&lt;SPAN&gt;vTaskList ()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;SPAN&gt; for a utility function That Generates information on the state of Each task.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DL compact="compact" style="color: #202020; background-color: #ffffff; font-size: 14px;"&gt;&lt;DT&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;parameters:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DT&gt;&lt;DD&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="10" style="font-size: 14px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD valign="top"&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;SPAN&gt;pcWriteBuffer&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;A buffer into the qui execution times will be written, in ASCII form. &lt;/SPAN&gt;&lt;SPAN&gt;This buffer is assumed to be wide enough to contenir the generated report. &lt;/SPAN&gt;&lt;SPAN&gt;Approximately 40 bytes per task shoulds be Sufficient.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DD&gt;&lt;/DL&gt;&lt;H3 id="toc-hId--987544721" style="color: #1a3065; background-color: #ffffff; font-size: 18px;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;I have no idea how to use and I am using Those LPCXPRESSO 1549. Any suggestion?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H3&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 13:35:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Run-Time-stats/m-p/626292#M32481</guid>
      <dc:creator>michaelrollover</dc:creator>
      <dc:date>2016-10-11T13:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Run Time stats</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Run-Time-stats/m-p/626293#M32482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should get you started on LPC1549, in FreeRTOSConfig.h;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL1|=(1&amp;lt;&amp;lt;1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define portGET_RUN_TIME_COUNTER_VALUE() ((((uint64_t)LPC_RIT-&amp;gt;COUNTER_H)&amp;lt;&amp;lt;32)|((uint64_t)(LPC_RIT-&amp;gt;COUNTER)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DAVE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 14:19:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Run-Time-stats/m-p/626293#M32482</guid>
      <dc:creator>dmarples</dc:creator>
      <dc:date>2016-10-12T14:19:34Z</dc:date>
    </item>
  </channel>
</rss>

