Zephyr Project API 3.7.0
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
20#if defined(CONFIG_SCHED_THREAD_USAGE_ANALYSIS) || defined(__DOXYGEN__)
29#endif /* CONFIG_SCHED_THREAD_USAGE_ANALYSIS */
31};
32
33#endif /* ZEPHYR_INCLUDE_KERNEL_STATS_H_ */
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
Structure used to track internal statistics about both thread and CPU usage.
Definition stats.h:18
uint64_t longest
# of cycles in longest usage window
Definition stats.h:26
uint64_t total
total usage in cycles
Definition stats.h:19
bool track_usage
true if gathering usage stats
Definition stats.h:30
uint64_t current
# of cycles in current usage window
Definition stats.h:25
uint32_t num_windows
# of usage windows
Definition stats.h:27