1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #ifndef __STACK_SIZE_ANALYZER_H
- #define __STACK_SIZE_ANALYZER_H
- #include <stddef.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- struct thread_analyzer_info {
-
- const char *name;
-
- size_t stack_size;
-
- size_t stack_used;
- #ifdef CONFIG_THREAD_RUNTIME_STATS
- unsigned int utilization;
- #endif
- };
- typedef void (*thread_analyzer_cb)(struct thread_analyzer_info *info);
- void thread_analyzer_run(thread_analyzer_cb cb);
- void thread_analyzer_print(void);
- #ifdef __cplusplus
- }
- #endif
- #endif
|