File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -42,22 +42,22 @@ typedef struct {
42
42
void mbed_stats_heap_get (mbed_stats_heap_t * stats );
43
43
44
44
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 . */
49
49
} mbed_stats_stack_t ;
50
50
51
51
/**
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.
53
54
*
54
55
* @param stats A pointer to the mbed_stats_stack_t structure to fill
55
56
*/
56
57
void mbed_stats_stack_get (mbed_stats_stack_t * stats );
57
58
58
59
/**
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.
61
61
*
62
62
* @param stats A pointer to an array of mbed_stats_stack_t structures to fill
63
63
* @param count The number of mbed_stats_stack_t structures in the provided array
You can’t perform that action at this time.
0 commit comments