Benchmarking RT HAL component
01 May 2019 22:50 - 01 May 2019 23:01 #132465
by Tower
Benchmarking RT HAL component was created 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.)
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.
01 May 2019 23:24 #132467
by BigJohnT
Replied by BigJohnT on topic Benchmarking RT HAL component
Show Hal Configuration you can watch the .time pin or you can use hal meter.
JT
JT
Please Log in or Create an account to join the conversation.
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
statistics
Please Log in or Create an account to join the conversation.
Time to create page: 0.107 seconds