Stefan Roese | 4736bec | 2022-09-02 13:57:53 +0200 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | cyclic command |
| 4 | ============== |
| 5 | |
| 6 | Synopsis |
| 7 | -------- |
| 8 | |
| 9 | :: |
| 10 | |
| 11 | cyclic list |
| 12 | |
| 13 | Description |
| 14 | ----------- |
| 15 | |
| 16 | The cyclic list command provides a list of the currently registered |
| 17 | cyclic functions. |
| 18 | |
| 19 | This shows the following information: |
| 20 | |
| 21 | Function |
| 22 | Function name |
| 23 | |
| 24 | cpu-time |
| 25 | Total time spent in this cyclic function. |
| 26 | |
| 27 | Frequency |
| 28 | Frequency of execution of this function, e.g. 100 times/s for a |
| 29 | pediod of 10ms. |
| 30 | |
| 31 | |
| 32 | See :doc:`../../develop/cyclic` for more information on cyclic functions. |
| 33 | |
| 34 | Example |
| 35 | ------- |
| 36 | |
| 37 | :: |
| 38 | |
| 39 | => cyclic list |
| 40 | function: cyclic_demo, cpu-time: 52906 us, frequency: 99.20 times/s |
| 41 | |
| 42 | Configuration |
| 43 | ------------- |
| 44 | |
| 45 | The cyclic command is only available if CONFIG_CMD_CYCLIC=y. |