1 /* 2 * Copyright (c) 2022 Intel Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /** 8 * @file 9 * 10 * @brief Memory Statistics 11 */ 12 13 #ifndef ZEPHYR_INCLUDE_SYS_MEM_STATS_H_ 14 #define ZEPHYR_INCLUDE_SYS_MEM_STATS_H_ 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 #include <stddef.h> 21 22 /* A common structure used to report runtime memory usage statistics */ 23 24 struct sys_memory_stats { 25 size_t free_bytes; 26 size_t allocated_bytes; 27 size_t max_allocated_bytes; 28 }; 29 30 #ifdef __cplusplus 31 } 32 #endif 33 34 #endif /* ZEPHYR_INCLUDE_SYS_MEM_STATS_H_ */ 35