Skip to content

Commit c8214bc

Browse files
eliwss0JF002
authored andcommitted
Update MemoryAnalysis.md
Cleaned up MemoryAnalysis.md for greater readability
1 parent f66fcdd commit c8214bc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

doc/MemoryAnalysis.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Puncover is really easy to install:
6060
- Launch a browser at http://localhost:5000/
6161

6262
### Analysis
63-
Using the MAP file and tools, we can easily see what symbols are using most of the flash memory. In this case, with no surprise, fonts and graphics are the largest use of flash memory.
63+
Using the MAP file and tools, we can easily see what symbols are using most of the flash memory. In this case, unsuprisingly, fonts and graphics are the largest use of flash memory.
6464

6565
![Puncover](./memoryAnalysis/puncover-all-symbols.png)
6666

@@ -245,7 +245,7 @@ Using this technique, I was able to trace all malloc calls at boot (boot -> digi
245245
- https://www.embedded.com/mastering-stack-and-heap-for-system-reliability-part-3-avoiding-heap-errors/
246246

247247
## LVGL
248-
I did a deep analysis of the usage of the buffer dedicated for lvgl (managed by lv_mem).
248+
I did a deep analysis of the usage of the buffer dedicated to lvgl (managed by lv_mem).
249249
This buffer is used by lvgl to allocated memory for drivers (display/touch), screens, themes, and all widgets created by the apps.
250250

251251
The usage of this buffer can be monitored using this code :
@@ -256,7 +256,7 @@ lv_mem_monitor(&mon);
256256
NRF_LOG_INFO("\t Free %d / %d -- max %d", mon.free_size, mon.total_size, mon.max_used);
257257
```
258258

259-
The most interesting metric is `mon.max_used` which specifies the maximum number of bytes that were used from this buffer since the initialization of lvgl.
259+
The most interesting metric is `mon.max_used` which specifies the maximum number of bytes used from this buffer since the initialization of lvgl.
260260
According to my measurements, initializing the theme, display/touch driver and screens cost **4752** bytes!
261261
Then, initializing the digital clock face costs **1541 bytes**.
262262
For example a simple lv_label needs **~140 bytes** of memory.

0 commit comments

Comments
 (0)