On 2021-03-05 3:03 p.m., Mauro Ziliani wrote:
Hi all
I'm looking for a memory track to investigate how many memory my
application needs.
The application di made with Qt/Qml 5.6 over a Krogoth on Imx6dl board.
Do you have some suggestion?
I'd initialize the library in the main()
Then I run some function to get the memory consumption
glibc has mallinfo:
https://stackoverflow.com/questions/8335402/how-to-find-how-much-memory-is-actually-used-up-by-a-malloc-call
I try valgrind but it is too heavy for the poor imx
Yep, it's a beast!
There are lighter memory debuggers such as the AddresssSanitizer:
https://stackoverflow.com/questions/47251533/memory-address-sanitizer-vs-valgrind
which links to a small wiki: Address Sanitizer Comparison Of Memory Tools
https://github.com/google/sanitizers/wiki/AddressSanitizerComparisonOfMemoryTools
Let us know if either of those approaches work for you.
Good luck,
../Randy
Thanks all
MZ
Sent from Mailspring <https://getmailspring.com/>, the best free email
app for work
--
# Randy MacLeod
# Wind River Linux
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52596): https://lists.yoctoproject.org/g/yocto/message/52596
Mute This Topic: https://lists.yoctoproject.org/mt/81112257/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-