logging: Add log mem shell command
Add log mem shell command to determine memory pool usage of logging system. Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
This commit is contained in:
parent
b52ad8f3e1
commit
e4dc8ed26b
3 changed files with 72 additions and 22 deletions
|
@ -467,6 +467,22 @@ struct log_msg *log_msg_create_n(const char *str,
|
|||
log_arg_t *args,
|
||||
uint32_t nargs);
|
||||
|
||||
/**
|
||||
* @brief Get number of free blocks from the log mem pool
|
||||
*/
|
||||
uint32_t log_msg_mem_get_free(void);
|
||||
|
||||
/**
|
||||
* @brief Get number of used blocks from the log mem pool
|
||||
*/
|
||||
uint32_t log_msg_mem_get_used(void);
|
||||
|
||||
/**
|
||||
* @brief Get max used blocks from the log mem pool
|
||||
*/
|
||||
uint32_t log_msg_mem_get_max_used(void);
|
||||
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue