<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 13, 2020 at 8:53 AM Matthew J Fletcher <<a href="mailto:amimjf@gmail.com">amimjf@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>My application seems to be using around 1/3rd of its total cpu usage in the 'TIME' task,. is this the task created by rtems_timer_initiate_server() ?</div></div></blockquote><div><br></div><div>Yes. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>What would be the best way to get more information,. are there console commands that would emit more data, or do i need to instrument my application to see usage of all rtems_timer_xx callbacks ?</div></div></blockquote><div><br></div><div>rtems_timer_server_xx would be the ones going to the TIME Server.</div><div><br></div><div>But 1/3 seems quite excessive. I would assume one of your timer server routines is doing something unexpectedly heavy CPU-wise.</div><div><br></div><div>I don't think there is any instrumentation in the server which would help. Measuring the execution time of each invocation is what comes to mind. My first thought is that this would be a nice debug option for timers. But I am not sure how good this would be for ISR style. </div><div><br></div><div>--joel </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div dir="ltr"><div><br>regards</div><div>---</div><div>Matthew J Fletcher</div><br></div></div></div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div></div>