commit | 8109863f535e0851b50a333d4e7fdaa2006ac019 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Dec 29 21:19:23 2019 -0700 |
committer | Simon Glass <sjg@chromium.org> | Tue Jan 07 16:02:38 2020 -0700 |
tree | 20f07f01be8decdace7d737f37113ebc4158d5dc | |
parent | 42a8db5c5ba8541b43a1aea439b3605195b122de [diff] |
test: Add functions to find the amount of allocated memory The malloc() implementations provides a way of finding out the approximate amount of memory that is allocated. Add helper functions to make it easier to access this and see changes over time. This is useful for tests that want to check if memory has been allocated or freed. Signed-off-by: Simon Glass <sjg@chromium.org>