:orphan: .. title:: CONFIG_SCHED_THREAD_USAGE_ANALYSIS .. kconfig:: CONFIG_SCHED_THREAD_USAGE_ANALYSIS CONFIG_SCHED_THREAD_USAGE_ANALYSIS ################################## *Analyze the collected thread runtime usage statistics* Type: ``bool`` Help ==== .. code-block:: none Collect additional timing information related to thread scheduling for analysis purposes. This includes the total time that a thread has been scheduled, the longest time for which it was scheduled and others. Direct dependencies =================== \ :kconfig:`SCHED_THREAD_USAGE ` && \ :kconfig:`THREAD_RUNTIME_STATS ` *(Includes any dependencies from ifs and menus.)* Default ======= - n Symbols selected by this symbol =============================== - \ :kconfig:`INSTRUMENT_THREAD_SWITCHING ` if !\ :kconfig:`USE_SWITCH ` Kconfig definition ================== At ``/Kconfig:391`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:40`` Menu path: (Top) → General Kernel Options → Kernel Debugging and Metrics → Thread runtime statistics → Collect thread runtime usage .. code-block:: kconfig config SCHED_THREAD_USAGE_ANALYSIS bool "Analyze the collected thread runtime usage statistics" default n select INSTRUMENT_THREAD_SWITCHING if !USE_SWITCH depends on SCHED_THREAD_USAGE && THREAD_RUNTIME_STATS help Collect additional timing information related to thread scheduling for analysis purposes. This includes the total time that a thread has been scheduled, the longest time for which it was scheduled and others. *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*