Navigation
Unreal Engine C++ API Reference > Runtime > Core > ProfilingDebugging
Inheritance Hierarchy
- FModifier
- TAllocPlaybackLog
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/ProfilingDebugging/AllocLogRecordingPlayback.h |
Include | #include "ProfilingDebugging/AllocLogRecordingPlayback.h" |
Syntax
template<typename FModifier, typename FAllocOp>
class TAllocPlaybackLog : public FModifier
Remarks
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); };
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FFilterType | CurrentFilter | |
![]() |
TArray< FAllocOp > | Ops |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TAllocPlaybackLog
(
FFilterType InFilter, |
Functions
Typedefs
Name | Description |
---|---|
FAllocType | |
FFilterType |