Navigation
API > API/Runtime > API/Runtime/CoreUObject
| Name | FScriptStackTracker |
| Type | struct |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/ScriptStackTracker.h |
| Include Path | #include "UObject/ScriptStackTracker.h" |
Syntax
struct FScriptStackTracker
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FScriptStackTracker
(
bool bInIsEnabled |
Constructor, initializing all member variables | UObject/ScriptStackTracker.h |
Structs
| Name | Remarks |
|---|---|
| FCallStack | Helper structure to capture callstack addresses and stack count. |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| MAX_BACKTRACE_DEPTH | const int32 | Maximum number of backtrace depth. | UObject/ScriptStackTracker.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAvoidCapturing | bool | Whether we are currently capturing or not, used to avoid re-entrancy. | UObject/ScriptStackTracker.h | |
| bIsEnabled | bool | Whether stack tracking is enabled. | UObject/ScriptStackTracker.h | |
| CallStacks | TArray< FCallStack > | Array of unique callstacks. | UObject/ScriptStackTracker.h | |
| CRCToCallStackIndexMap | TMap< uint32, int32 > | Mapping from callstack CRC to index in callstack array. | UObject/ScriptStackTracker.h | |
| StartFrameCounter | uint64 | Frame counter at the time tracking was enabled. | UObject/ScriptStackTracker.h | |
| StopFrameCounter | uint64 | Frame counter at the time tracking was disabled. | UObject/ScriptStackTracker.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CaptureStackTrace
(
const FFrame* StackFrame, |
Captures the current stack and updates stack tracking information. | UObject/ScriptStackTracker.h | |
void DumpStackTraces
(
int32 StackThreshold, |
Dumps capture stack trace summary to the passed in log. | UObject/ScriptStackTracker.h | |
void ResetTracking() |
Resets stack tracking. | UObject/ScriptStackTracker.h | |
void ToggleTracking() |
Toggles tracking. | UObject/ScriptStackTracker.h |