DeleakerClientApi_TakeSnapshotForCurrentThread

DWORD64 DeleakerClientApi_TakeSnapshotForCurrentThread(LPCTSTR szSnapshotName);

Make Deleaker take a snapshot for allocations that were created by current thread only.

szSnapshotName is the snapshot name. If it's NULL, the snapshot will have the default name.

The function returns once the snapshot is ready.

The returned value is the snapshot id.

It's useful when you want to monitor leaks for current thread only, and you are not aware of allocations from other threads.