With linuxcnc2.7, you can make a histogram of a component's execution time and total thread time. Example:
Code:
$ hal-histogram --help # for command options
$ hal-histogram pid.0.do-pid-calcs.time &
$ hal-histogram servo-thread.time &
You probably need to adjust minval,binsize, nbins -- it is convenient to first increase
binsize and then make additional adjustments.
ref:
linuxcnc.org/docs/2.7/html/hal/tools.html