which method/tool is best to check memory leak for VTK programs on Ubuntu? vtkDebugLeaks enough? or Valgrind/ASan?

which method/tool is best to check memory leak for VTK programs on Ubuntu? vtkDebugLeaks enough? or Valgrind/ASan?
thanks

VTK_DEBUG_LEAKS

thanks!
may i ask it’s added since which version of VTK?
using it is enough to detect memory leaks, as Valgrind and ASan?

VTK_DEBUG_LEAKS is old, while the link I shared is only present in VTK 9.

Valgrind and Asan will find more potential leaks but will have a lot of false positive as they rely on monitoring the memory directly (kindof).

VTK _DEBUG_LEAKS will find all vtkObject that are not correct deallocated.

thanks, also find VTK_DEBUG_LEAKS in vtk-8.1, so what’s ur suggestion on Ubuntu? just use VTK_DEBUG_LEAKS? or maybe combine it with valgrind or ASan? or just use ASan/valgrind?
the project has some custom derived class from vtk class

If you have a suspicion for a leak, enable VTK_DEBUG_LEAKS, if nothing comes up, use valgrind.