I agree; 4 bytes per pool is not too much. We could also register them but if 
we think everyone will always register every memory pool (or a large % of 
them), the 4 bytes in the structure are fine.

> On Jan 28, 2016, at 8:14 AM, marko kiiskila <[email protected]> wrote:
> 
> 
>> On Jan 27, 2016, at 2:44 PM, Sterling Hughes <[email protected]> wrote:
>> 
>> Heehaw,
>> 
>> I'm looking to add statistics to the core RTOS (libs/os), to improve
>> instrumentation.
>> 
>> 
>> Also, right now memory pools are not centrally linked.  This change
>> would require there to be a list of all memory pools initialized by
>> the system, adding 4 bytes to the mempool structure, and 4 bytes of
>> .bss.  Any objections?
>> 
> 
> 4 bytes per pool is worth the cost, IMHO. I’d also like to be able to see the
> current memory pool & heap use from CLI.

Reply via email to