Navigation
API > API/Runtime > API/Runtime/Core
Define a modifier class like below and supply it to TAllocPlaybackLog to complete the template. Create an instance of the completed TAllocPlaybackLog. Call Load to load an allocation log generated by your specialized TAllocRecordingLog. Call Play to playback recorded allocations and frees. Record and write out profiling data as you see fit.
class FModifier { typedef <...> FAllocType;
// Initialize custom member variables FModifier(...);
int32 OnPlaybackStart(); void OnPlaybackEnd(int32 NumAllocOpsReplayed);
void OnNewPlaybackFrame(); void OnEndPlaybackFrame();
void OnFree(const FAllocType& Allocation); FAllocType OnAlloc(const FAllocOp& Op);
static bool IsValidAllocation(const FAllocType& Allocation);
static void HandleFatalError(const TCHAR* Message); static void HandleErrorMessage(const TCHAR* Message); };
| Name | TAllocPlaybackLog |
| 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 TAllocPlaybackLog : public FModifier
Inheritance Hierarchy
- FModifier → TAllocPlaybackLog
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAllocPlaybackLog
(
FFilterType InFilter, |
ProfilingDebugging/AllocLogRecordingPlayback.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FAllocType | typename FModifier::FAllocType | ProfilingDebugging/AllocLogRecordingPlayback.h | |
| FFilterType | typename FAllocOp::FFilterType | ProfilingDebugging/AllocLogRecordingPlayback.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Load
(
FString& Filename |
ProfilingDebugging/AllocLogRecordingPlayback.h | ||
void Play
(
int32 MaxOpCount |
ProfilingDebugging/AllocLogRecordingPlayback.h |