FStackTracker::CaptureStackTrace

Captures the current stack and updates stack tracking information.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/StackTracker.h

Include

#include "Containers/StackTracker.h"

Source

/Engine/Source/Runtime/Core/Private/Containers/StackTracker.cpp

Syntax

void CaptureStackTrace
(
    int32 EntriesToIgnore,
    void * UserData,
    int32 StackLen,
    bool bLookupStringsForAliasRemoval
)

Remarks

Captures the current stack and updates stack tracking information. optionally stores a user data pointer that the tracker will take ownership of and delete upon reset you must allocate the memory with FMemory::Malloc() or provide a custom delete function EntriesToIgnore are removed from the top of then stack, then we keep at most StackLen of the remaining entries.

Captures the current stack and updates stack tracking information. optionally stores a user data pointer that the tracker will take ownership of and delete upon reset you must allocate the memory with FMemory::Malloc() or provide a custom delete function