Module |
|
Header |
/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTUtilDebug.h |
Include |
#include "NUTUtilDebug.h" |
class FStackTraceManager
Manager for handling multiple debug stack traces on-the-fly, and allowing abstraction of stack traces, so you don't have to manually handle FNUTStackTrace objects (which can be complicated/bug-prone).
This is a more intuitive way of handling tracing, you just use a call to 'GTraceManager->AddTrace' wherever needed, and add calls to 'Enable'/'Disable' whenever you want to accept/ignore AddTrace calls - then 'Dump' to see the results. No messing with managing instances of above objects.
This also hooks into console commands as well, allowing it to be used throughout the engine, instead of depending on this module. See the documentation for the 'StackTrace' command in UnitTestManager.cpp.
Name | Description | |
---|---|---|
|
FStackTraceManager() |
Base constructor |
Name | Description | |
---|---|---|
|
~FStackTraceManager() |
Destructor |
Name | Description | ||
---|---|---|---|
|
AddTrace |
Adds a new stack trace, to the specified trace, optionally logging/dumping in the process |
|
|
Clear ( |
Clears the specified trace from tracking |
|
|
ContainsTrace ( |
Whether or not a trace of this name is present |
|
|
Disable ( |
Passes on a 'Disable' call, to the specified stack trace (if it exists) |
|
|
Dump |
Dumps accumulated stack traces, and removes from tracking (unless otherwise specified) |
|
|
DumpAll |
Dumps accumulated stack traces, for all tracked traces |
|
|
Enable ( |
Passes on an 'Enable' call, to the specified stack trace |
|
|
FNUTStackTra... |
GetOrCreateTrace |
Gets or creates a trace, of the specified name |
|
FNUTStackTra... |
GetTrace ( |
Gets the trace of the specified name, or NULL if it doesn't exist |
|
TraceAndDump ( |
Performs a once-off stack trace, with no tracking (but if there is already a trace active with this name, respect its 'enabled' status) |