Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • To assess Flash and static RAM usage at compile time, by analysing memory map files.

  • To measure Heap and Stack usage at runtime using the technique of memory painting.

  • To measure execution time using internal and external tools (hardware timers and logic analysers).

  • To measure energy consumption using osciloscopes and power profilers.

  • To correlate execution time and energy consumption data in a granular and step-by-step way, allowing the identification of performance bottlenecks.

  • To measure message sizes of IoT protocols deployed in embedded systems, using techniques such as logging and packet sniffing.

Overview of the setup and workflow:

...

Measuring Memory Usage

Flash and RAM (Compile Time)

...

A more sophisticated and accurate way of measuring energy consumption consists in using a power profiler, such as the nRF Power Profiler Kit and or the Otii Arc Pro. One advantage of For this tutorial we selected the latter is that , since it is designed to be board-agnostic , so we will select it as the instrument for this tutorialand also allow interacting with GPIO pins.

Correlating Execution Time and Energy Consumption

Syncing execution time and energy consumption: power profiler (otii arc) with gpio

Advanced Measurements for Energy and Time

Step-by-step Granular Time and Energy Consumption

...