1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/bugs/vis/bug5682
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

26 lines
479 B
Plaintext
Executable File

puts "============"
puts "OCC5682"
puts "============"
puts ""
######################################################
# AIS_InteractiveContext::Remove does not remove the object from memory
######################################################
set BugNumber OCC5682
set listmem {}
box b 100 100 100
vinit
vdisplay b
vfit
catch {vselmode 4 1}
vclear
lappend listmem [meminfo h]
if { [checktrend $listmem 0 1 "Memory leak detected"] } {
puts "No memory leak"
break
}