nw::demo::DebugUtility::TestMemoryLeak Member Function

Syntax

static bool TestMemoryLeak(
     nw::demo::DemoAllocator * deviceAllocator,
     nw::demo::DemoAllocator * particleAllocator
);

Arguments

Name Description
in deviceAllocator The device memory allocator to be detected.
in particleAllocator The particle memory allocator to be detected.

Return Values

Returns true if the memory volume matches than when the ResetMemoryLeakTester function was executed. If not, returns false.

Description

Tests for memory leaks.

Compares the memory volume with that when the ResetMemoryLeakTester function was last executed. If the memory volume does not match that from execution of ResetMemoryLeakTester this function outputs a heap dump.


CONFIDENTIAL