Navigation
Unreal Engine C++ API Reference > Runtime > Core > ProfilingDebugging
Inheritance Hierarchy
- FModifier
- TAllocRecordingLog
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/ProfilingDebugging/AllocLogRecordingPlayback.h |
Include | #include "ProfilingDebugging/AllocLogRecordingPlayback.h" |
Syntax
template<typename FModifier, typename FAllocOp>
class TAllocRecordingLog : public FModifier
Remarks
Define a modifier class like below and supply it to TAllocRecordingLog to complete the template. Create an instance of the completed TAllocRecordingLog before any allocation of interest is done. Inject RecordAlloc and RecordFree to your allocator wherever appropriate.
class FModifier { // Initialize custom member variables FModifier(...);
bool ShouldRecordAlloc(const FAllocOp& Op) const;
static void HandleFatalError(const TCHAR* Message);
static void HandleDisplayMessage(const TCHAR* Message); };
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FCriticalSection | CS | |
![]() |
int64 | CurrentAllocationIndex | |
![]() |
ANSICHAR[1024] | LineBuffer | |
![]() |
TSharedPtr< FArchive > | OutputFile |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TAllocRecordingLog
(
const FString& Filename, |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
int64 | RecordAlloc
(
ArgTypes&&... Args |
|
![]() |
void | RecordFree
(
int64 AllocIndex |
|
![]() |
void | WriteLineBuffer
(
int32 NumCharacters |