Zephyr API Documentation
4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stats.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021,2023, Intel Corporation
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_KERNEL_STATS_H_
8
#define ZEPHYR_INCLUDE_KERNEL_STATS_H_
9
10
#include <
stdint.h
>
11
#include <
stdbool.h
>
12
18
struct
k_cycle_stats
{
19
uint64_t
total
;
20
#if defined(CONFIG_SCHED_THREAD_USAGE_ANALYSIS) || defined(__DOXYGEN__)
25
uint64_t
current
;
26
uint64_t
longest
;
27
uint32_t
num_windows
;
29
#endif
/* CONFIG_SCHED_THREAD_USAGE_ANALYSIS */
30
bool
track_usage
;
31
};
32
33
#endif
/* ZEPHYR_INCLUDE_KERNEL_STATS_H_ */
stdbool.h
stdint.h
uint32_t
__UINT32_TYPE__ uint32_t
Definition
stdint.h:90
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:91
k_cycle_stats
Structure used to track internal statistics about both thread and CPU usage.
Definition
stats.h:18
k_cycle_stats::longest
uint64_t longest
# of cycles in longest usage window
Definition
stats.h:26
k_cycle_stats::total
uint64_t total
total usage in cycles
Definition
stats.h:19
k_cycle_stats::track_usage
bool track_usage
true if gathering usage stats
Definition
stats.h:30
k_cycle_stats::current
uint64_t current
# of cycles in current usage window
Definition
stats.h:25
k_cycle_stats::num_windows
uint32_t num_windows
# of usage windows
Definition
stats.h:27
zephyr
kernel
stats.h
Generated on Thu Nov 21 2024 15:02:41 for Zephyr API Documentation by
1.12.0