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