kernel/sched: enable/disable runtime stats

Adds support to enable/disable both thread and cpu runtime
stats.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
This commit is contained in:
Peter Mitsis 2021-12-15 09:46:52 -05:00 committed by Anas Nashif
commit 0ebd6c7f26
6 changed files with 233 additions and 39 deletions

View file

@ -21,6 +21,7 @@ struct k_cycle_stats {
uint64_t longest; /* # of cycles in longest usage window */
uint32_t num_windows; /* # of usage windows */
#endif
bool track_usage; /* true if gathering usage stats */
};
#endif