Benchmarking RT HAL component

More
01 May 2019 22:50 - 01 May 2019 23:01 #132465 by Tower
Hello,
I am in need to be pointed to the right direction about real-time component benchmarking and general time measurement.

I am sure it's a quite common concern, but by simple search, I didn't find much. What I want is such: I am writing a real-time HAL component (loaded as loadrt) and would like to measure how long each instance of the main function call took. (The thread will run on the standard 1kHz.)

I am targeting the RT-PREEMPT patch with mainline kernel version.

Any idea?
Thanks.

(The only thing I found so far is ftrace.)
Last edit: 01 May 2019 23:01 by Tower.

Please Log in or Create an account to join the conversation.

More
01 May 2019 23:24 #132467 by BigJohnT
Show Hal Configuration you can watch the .time pin or you can use hal meter.

JT

Please Log in or Create an account to join the conversation.

More
01 May 2019 23:57 #132471 by PCW
Replied by PCW on topic Benchmarking RT HAL component
You can also use HALScope or hal-histogram to get a better view of the
statistics

Please Log in or Create an account to join the conversation.

Time to create page: 0.107 seconds
Powered by Kunena Forum