![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <HealthSnapshot.h>
Classes | |
| struct | FMemoryStat |
| struct | FMmaStat |
| struct | FThreadStat |
Public Member Functions | |
| ENGINE_API | FHealthSnapshot (const TCHAR *Title) |
| ENGINE_API | FHealthSnapshot (const TCHAR *Title, const FPerformanceTrackingChart *GameplayFPSChart) |
| virtual | ~FHealthSnapshot () |
| ENGINE_API void | Dump (FOutputDevice &Ar) |
Protected Member Functions | |
| virtual ENGINE_API void | CaptureMemoryStats () |
| virtual ENGINE_API void | CapturePerformanceStats (const FPerformanceTrackingChart *GameplayFPSChart) |
| virtual ENGINE_API void | DumpStats (FOutputDevice &Ar, FName CategoryName) |
Describes a health snapshot about the game at the current time including memory stats. If given a FPerformanceTrackingChart with MeasuredPerfTime > 0, this will also include a basic summary of the active FPS charting session as performance stats. You can create HealthSnapshots simply by creating a new object with the constructor.
See UHealthSnapshotBlueprintLibrary for static helpers that can manage a performance chart if one does not already exist
Snapshots can be dumped to logs or any other FOutputDevice.
| FHealthSnapshot::FHealthSnapshot | ( | const TCHAR * | Title | ) |
Create a snapshot of the current game health. Captures only memory stats.
| Title The name of the new snapshot. |
| FHealthSnapshot::FHealthSnapshot | ( | const TCHAR * | Title, |
| const FPerformanceTrackingChart * | GameplayFPSChart | ||
| ) |
Create a snapshot of the current game health. Captures both memory and performance stats.
| Title The name of the new snapshot. | |
| GameplayFPSChart The chart which has been updated with performance stats to be included in the snapshot. |
|
inlinevirtual |
|
protectedvirtual |
Snapshots current memory stats
|
protectedvirtual |
Snapshots performance stats if the given tracking chart is filled with FPS charting data (MeasuredPerfTime > 0)
| void FHealthSnapshot::Dump | ( | FOutputDevice & | Ar | ) |
Dumps a text blob describing all stats captured by the snapshot to the given output device. Outputs to the LogHealthSnapshot log category.
| Ar The output device that will print the snapshot text blob. Use *GLog to simply write to the log. |
|
protectedvirtual |
| double FHealthSnapshot::AvgFPS |
| double FHealthSnapshot::AvgHitchTime |
| FMemoryStat<float> FHealthSnapshot::CPUMemoryMB |
Memory data
| FMmaStat<int> FHealthSnapshot::DrawCalls |
| FThreadStat FHealthSnapshot::GameThread |
| FThreadStat FHealthSnapshot::GPU |
| double FHealthSnapshot::HitchesPerMinute |
| float FHealthSnapshot::LLMTotalMemoryMB |
| double FHealthSnapshot::MeasuredPerfTime |
Performance data
| double FHealthSnapshot::MVP |
| FMemoryStat<float> FHealthSnapshot::PhysicalMemoryMB |
| TArray<typename FPlatformMemoryStats::FPlatformSpecificStat> FHealthSnapshot::PlatformMemoryStats |
| FMmaStat<int> FHealthSnapshot::PrimitivesDrawn |
| FThreadStat FHealthSnapshot::RenderThread |
| FThreadStat FHealthSnapshot::RHIThread |
| FMemoryStat<float> FHealthSnapshot::StreamingMemoryMB |
| FString FHealthSnapshot::Title |
Title of the Snapshot