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:
parent
f498118daa
commit
0ebd6c7f26
6 changed files with 233 additions and 39 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue