[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] measuring stack/heap usage
From: |
Daniel Otte |
Subject: |
Re: [avr-chat] measuring stack/heap usage |
Date: |
15 Mar 2010 21:00:28 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.23) Gecko/20090817 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
Joerg Wunsch wrote:
> Nope. The usual way is to fill in the pattern by a time when there's
> no stack yet at all, i. e. within the .initX sections, before calling
> (or jumping to) main().
>
This would be a good method to analyze the total amount of RAM used by an
application, but it has a few drawbacks:
* it can only measure the RAM footprint of the whole application
* the device must be restarted several times to get good figures
* special initialization code is required
* special analysis code is required
I intend to measure only the memory footprint of some function and in this
special case there is no heap memory used by the functions.
Best regards,
Daniel
signature.asc
Description: PGP signature
signature.asc
Description: OpenPGP digital signature
Re: [avr-chat] measuring stack/heap usage, Daniel Otte, 2010/03/15