Navigation
API > API/Runtime > API/Runtime/Core
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); };
| Name | TAllocRecordingLog |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/ProfilingDebugging/AllocLogRecordingPlayback.h |
| Include Path | #include "ProfilingDebugging/AllocLogRecordingPlayback.h" |
Syntax
template<typename FModifier, typename FAllocOp>
class TAllocRecordingLog : public FModifier
Inheritance Hierarchy
- FModifier → TAllocRecordingLog
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAllocRecordingLog
(
const FString& Filename, |
ProfilingDebugging/AllocLogRecordingPlayback.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int64 RecordAlloc
(
ArgTypes&&... Args |
ProfilingDebugging/AllocLogRecordingPlayback.h | ||
void RecordFree
(
int64 AllocIndex |
ProfilingDebugging/AllocLogRecordingPlayback.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void WriteLineBuffer
(
int32 NumCharacters |
ProfilingDebugging/AllocLogRecordingPlayback.h |