Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Parameters

The Component Heap Tracker has an .ini file. The name of the file for debugging on the Simulator is cht.ini. The name of the file for debugging on the device is LogHeap.ini. The parameters are:

[Log]
; Start with logging off
StartOn=0

; period in seconds with which to log outstanding allocs and frees
; if turned on, the "Log" button is not added to the UI
Period=0

; overwrite log files after N+1; the 0th log file is not overwritten,
; only 1-N
OverwriteAfterN=10

; write Heap1 Trace message to debug output
Heap1Trace=0

; Halts the simulator when there is a heap corruption, 0=off, 1=on
HeapHalt=1

; Delayed Free Count for Double free tracking
DelayedFreeCount=30000

; overrun padding size in bytes, 0 turns off this feature,
; recommend to be 32 * n
OverRunSize=256

; Delay in seconds to collect heap statistics
HeapWaterMarkDelay=0

[CreateInstance]
; hook CreatInstance to capture callstack for each CreateInstance call
Hook=0

When collecting data over a long period of time the hard drive can become full. To avoid this CHT can overwrite log files. Use OverwriteAfterN in the log section to specify how many log files CHT should save.

When OverwriteAfterN=10, the first 10 files are saved and the 11th file gets overwritten.