1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/vis/bug29412
abv 9fb8f3f174 0029412: Huge Memory leak since I upgraded to OC 6.9.0
Added non-regression test bugs vis bug29412
2018-03-16 15:05:52 +03:00

28 lines
683 B
Plaintext

puts "# ==================================================================="
puts "# 0029412: Huge Memory leak since I upgraded to OC 6.9.0"
puts "# ==================================================================="
puts ""
pload VISUALIZATION
vcaps -vsync 0
vinit View1
vglinfo
OCC29412 100 ;# just to initialize
meminfo
vmemgpu
set heap_before [meminfo heap]
OCC29412
set heap_after [meminfo heap]
meminfo
vmemgpu
# check that memory increase is moderate: can be up to 75 KiB on Debian;
# note that the leak in OCCT 6.9.0 - 7.0.0 was ~ 19 MiB
if { $heap_after - $heap_before > 100 * 1024 } {
puts "Error: memory leak of [expr ($heap_after - $heap_before) / 1024] KiB"
}