Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
3.0.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
stats.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021, 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
12
/*
13
* [k_cycle_stats] is used to track internal statistics about both thread
14
* and CPU usage.
15
*/
16
17
struct
k_cycle_stats
{
18
uint64_t
total
;
/* total usage in cycles */
19
#ifdef CONFIG_SCHED_THREAD_USAGE_ANALYSIS
20
uint64_t
current;
/* # of cycles in current usage window */
21
uint64_t
longest;
/* # of cycles in longest usage window */
22
uint32_t
num_windows;
/* # of usage windows */
23
#endif
24
bool
track_usage
;
/* true if gathering usage stats */
25
};
26
27
#endif
stdint.h
uint32_t
__UINT32_TYPE__ uint32_t
Definition:
stdint.h:60
uint64_t
__UINT64_TYPE__ uint64_t
Definition:
stdint.h:61
k_cycle_stats
Definition:
stats.h:17
k_cycle_stats::total
uint64_t total
Definition:
stats.h:18
k_cycle_stats::track_usage
bool track_usage
Definition:
stats.h:24
include
kernel
stats.h
Generated on Mon Feb 21 2022 22:43:02 for Zephyr API Documentation by
1.9.2