mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Added TKOpenGlTest and TKD3DHostTest Draw Harness plugins. TKOpenGlTest is automatically loaded by ViewerTest::ViewerInit(). Commands vgldebug, vvbo, vcaps and vuserdraw have been moved to TKOpenGlTest. New command vglshaders lists GLSL programs defined by OpenGl_GraphicDriver, previously implemented by "vshaderprog -list". Added new command vdriver for graphic driver selection. Removed erroneous code from command vstereo.
29 lines
696 B
Plaintext
29 lines
696 B
Plaintext
puts "# ==================================================================="
|
|
puts "# 0029412: Huge Memory leak since I upgraded to OC 6.9.0"
|
|
puts "# ==================================================================="
|
|
puts ""
|
|
|
|
pload VISUALIZATION
|
|
pload OPENGL
|
|
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"
|
|
}
|