Zephyr Project API 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
cpu_load.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024, Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DEBUG_CPU_LOAD_H_
8#define ZEPHYR_INCLUDE_DEBUG_CPU_LOAD_H_
9
10#include <stdbool.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
26
29
41int cpu_load_get(bool reset);
42
49void cpu_load_log_control(bool enable);
50
55#ifdef __cplusplus
56}
57#endif
58
59
60#endif /* ZEPHYR_INCLUDE_DEBUG_CPU_LOAD_H_ */
void cpu_load_on_enter_idle(void)
Hook called by the application specific hook on entering CPU idle.
void cpu_load_on_exit_idle(void)
Hook called by the application specific hook on exiting CPU idle.
void cpu_load_log_control(bool enable)
Control periodic CPU statistics report.
int cpu_load_get(bool reset)
Get CPU load.