DeleakerClientApi_TakeSnapshotForProcessThread

Syntax

DWORD64 DeleakerClientApi_TakeSnapshotForProcessThread(
  LPCTSTR szSnapshotName,
  DWORD pid,
  DWORD tid);

Description

The DeleakerClientApi_TakeSnapshotForProcessThread function instructs Deleaker to take a snapshot that includes only allocations created by the specified process and thread.

The function blocks until the snapshot is fully created.

The returned value is the unique identifier of the created snapshot.

This function works only for processes that are currently being monitored by Deleaker.

Parameters

szSnapshotName

The name of the snapshot.

If szSnapshotName is NULL, the snapshot is created with a default name.

pid

The identifier of the process for which the snapshot is created.

tid

The identifier of the thread within the specified process.