1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-07 18:30:55 +03:00
occt/tests/bugs/fclasses/bug22611
omy 67a1064eb8 0023818: Extend OSD_MemInfo to report C heap statistics
A new counter MemHeapUsage was added to OSD_MemInfo class to examine program heap size
DRAW command meminfo got new option -h (--heap ) to use new counter data
The following testcases were changed to use new option -h of DRAW command meminfo
myCounters[MemHeapUsage] now will always be refilled every time the OSD_MemInfo::Update() function is called.
Fixed testcases to use meminfo -h instead of meminfo -w to detect memory leaks more properly.
2013-04-12 13:21:13 +04:00

24 lines
495 B
Plaintext
Executable File

puts "========"
puts "OCC22611"
puts "========"
puts ""
#######################################################################
# Memory leak in expression interpreter
#######################################################################
pload QAcommands
set BugNumber OCC22611
OCC22611 "0.1214343" 1
set listmem {}
set i_max 1000000
OCC22611 "0.1214343" ${i_max}
lappend listmem [meminfo h]
if { [checktrend $listmem 0 1 "Memory leak detected"] } {
puts "No memory leak"
break
}