[Avrora] Memory Usage
macbrowny at yahoo.com
Fri Oct 23 21:26:46 PDT 2009
My answer assumes you use TinyOS/NesC executables.
I have always used "avr-size" which prints the static ROM and RAM size.Is there a Heap in TinyOS?
----- Original Message ----
From: Roy Shea <royshea at gmail.com>
To: Mailing list for Avrora simulator users and developers. <avrora at lists.ucla.edu>
Sent: Thu, October 22, 2009 1:32:15 PM
Subject: Re: [Avrora] Memory Usage
> I am trying to see the memory used (ROM, RAM, Heap) by my program
> running in Avrora. What is the best way to do this?
You can examine the static ROM and RAM required by a program without
Avrora. My current favorite tool for this is a script called
module_memory_usage from the old TinyOS 1.x repository:
Avrora apparently has a stack analysis tool, but I've never tried it:
No idea about heap monitoring in Avrora. If you can get your code
running on a PC (would it work as a stand alone library?), you can fall
back to the massif utility provided by valgrind for heap analysis:
Best of luck profiling!
Avrora mailing list
Avrora at lists.ucla.edu
More information about the Avrora