Friday, February 23rd 2018, 3:18am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Date of registration: Oct 31st 2016

Posts: 7

1

Thursday, January 18th 2018, 8:10am

Monitoring Memory Block (GUI_ALLOC_AssignMemory) Usage

Hi

Is there a structure or call that allows me to monitor the peak usage of the assigned memory block? This is to permit monitoring/logging independent of emWinSPY.

Thanks

Mark

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 496

2

Thursday, January 18th 2018, 10:50am

Hi,

Yes, you might try the following functions:

GUI_ALLOC_GetMaxUsedBytes() - Returns the peak of the used bytes
GUI_ALLOC_GetNumFreeBytes() - Returns the current number of free bytes
GUI_ALLOC_GetNumUsedBytes() - Returns the current number of bytes used

Also there are two undocumented functions which return the number of used and free blocks:

GUI_ALLOC_GetNumUsedBlocks()
GUI_ALLOC_GetNumFreeBlocks()

Regards
Sven

Date of registration: Oct 31st 2016

Posts: 7

3

Friday, January 19th 2018, 12:17pm

Thank you Sven.