Skip to content

Commit ea12d69

Browse files
Merge pull request #4790 from bulislaw/mem_stats
Improve documentation for memory stat ops
2 parents 74387f8 + e9f7850 commit ea12d69

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

platform/mbed_stats.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,22 @@ typedef struct {
4242
void mbed_stats_heap_get(mbed_stats_heap_t *stats);
4343

4444
typedef struct {
45-
uint32_t thread_id; /**< Identifier for thread that owns the stack. */
46-
uint32_t max_size; /**< Sum of the maximum number of bytes used in each stack. */
47-
uint32_t reserved_size; /**< Current number of bytes allocated for all stacks. */
48-
uint32_t stack_cnt; /**< Number of stacks currently allocated. */
45+
uint32_t thread_id; /**< Identifier for thread that owns the stack or 0 if multiple threads. */
46+
uint32_t max_size; /**< Maximum number of bytes used on the stack. */
47+
uint32_t reserved_size; /**< Current number of bytes allocated for the stack. */
48+
uint32_t stack_cnt; /**< Number of stacks stats accumulated in the structure. */
4949
} mbed_stats_stack_t;
5050

5151
/**
52-
* Fill the passed in structure with stack stats.
52+
* Fill the passed in structure with stack stats accumulated for all threads. The thread_id will be 0
53+
* and stack_cnt will represent number of threads.
5354
*
5455
* @param stats A pointer to the mbed_stats_stack_t structure to fill
5556
*/
5657
void mbed_stats_stack_get(mbed_stats_stack_t *stats);
5758

5859
/**
59-
* Fill the passed array of stat structures with the stack stats
60-
* for each available stack.
60+
* Fill the passed array of stat structures with the stack stats for each available thread.
6161
*
6262
* @param stats A pointer to an array of mbed_stats_stack_t structures to fill
6363
* @param count The number of mbed_stats_stack_t structures in the provided array

0 commit comments

Comments
 (0)