Commit Graph

9 Commits

Author SHA1 Message Date
Maciej-Mudita
1b03981b06 [BH-1701] Add extended user heap statistics for debugging
Added extended statistics to help track potential memory leaks:
* used user heap size per task
* number of successful allocations
* number of successful frees
2023-05-31 14:39:33 +02:00
Adam Wulkiewicz
d2bf42d411 [BH-1655] Fix memory leaks in clock faces and shortcuts
Disable libphonenumber initialization since it is not used in Harmony
but takes around 1.4MB of memory

Add heap allocation statistics
2023-03-17 12:44:30 +01:00
Maciej-Mudita
e6adfdb39a [MOS-75] Fix incorrect data in pure heapstats tool
"pure heapstats" command was returning incorrect
system heap data
2023-01-25 16:50:28 +01:00
Lucjan Bryndza
9fba3f1ecf [EGD-7727] Fix userrealloc to ANSI standard capable
Fix userrealloc() function to the ANSI to comply
ANSI C standard

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-11-24 06:01:40 +01:00
Marcin Smoczyński
bd90e57516 [BH-907] Split utils module into components
Split module-utils into smaller components for better dependency
management. Fix many dependencies throughout the project.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-23 15:14:40 +02:00
Maciej Gibowicz
77e37561cd [EGD-6769] Preventing use of allocators in interrupts
Abort when trying to use an allocator in an interrupt.
This prevents the heap from being overwritten.
2021-05-19 09:34:08 +02:00
Marcin Smoczyński
871b250d86 [EGD-4534] Change audio data path synchronization
Refactor audio data path to fix several synchronization issues and
excessive copy operations on large memory blocks. Introduce
audio::Stream data structure to allow connecting audio source and sink
with a zero-copy capability.

Introduce system mechanisms:
 - critical section guard lock needed for stream synchronization
 - non-cacheable memory allocator to allocate memory for DMA safe
   buffers

Update the Googletest CMake template to match the capabilities of the
Catch2 template.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Signed-off-by: Hubert Chrzaniuk <hubert.chrzaniuk@mudita.com>
2020-12-17 12:20:40 +01:00
Piotr Tanski
5c57dff00e [EGD-4713] Add task control block into a heap allocated memory block for debug purposes. (#1143) 2020-12-14 11:44:56 +01:00
Robert Borzecki
d3235d54d7 Removed submodule 2019-05-21 23:35:00 +02:00