FNUTStackTrace

A class for dumping a stack trace, upon encountering a specific piece of code

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTUtilDebug.h

Include

#include "NUTUtilDebug.h"

Syntax

class FNUTStackTrace

Remarks

A class for dumping a stack trace, upon encountering a specific piece of code

Variables

Name Description

Protected variable

FString

 

TraceName

The human-readable name to provide for this stack trace

Protected variable

FStackTracker

 

Tracker

The stack tracker associated with this debug trace

Constructors

Name Description

Public function

FNUTStackTrace

(
    FString InTraceName
)

Constructs the debug stack trace

FNUTStackTrace

Destructors

Name Description

Public function

~FNUTStackTrace()

Destructor

Functions

Name Description

Public function

void

 

AddTrace

(
    bool bLogAdd
)

Adds a new trace to the stack tracker (optionally dumping to log at the same time)

Public function

void

 

Disable()

Disable stack tracking (past traces are still kept in tracking, but no new ones are added until re-enabled)

Public function

void

 

Dump

(
    bool bKeepTraceHistory
)

Dumps accumulated stack traces

Public function

void

 

Enable()

Enable stack tracking

Public function

bool

 

IsTrackingEnabled()

Whether or not the stack tracker, is currently tracking

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss