Monday, February 19th 2018, 2:48am UTC+1

You are not logged in.

  • Login
  • Register

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: 491

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.