FHealthSnapshot

Describes a health snapshot about the game at the current time including memory stats.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/ProfilingDebugging/HealthSnapshot.h

Include

#include "ProfilingDebugging/HealthSnapshot.h"

Syntax

class FHealthSnapshot

Remarks

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.

Variables

Name Description

Public variable

double

 

AvgFPS

Public variable

double

 

AvgHitchTime

Public variable

FMemoryStat< fl...

 

CPUMemoryMB

General "how much memory is used".

Public variable

FMmaStat< int >

 

DrawCalls

Public variable

FMmaStat< doubl...

 

DynamicResolution

Public variable

FMmaStat< doubl...

 

FrameTime

Public variable

FThreadStat

 

GameThread

Public variable

FThreadStat

 

GPU

Public variable

double

 

HitchesPerMinute

Public variable

float

 

LLMTotalMemoryMB

Public variable

double

 

MeasuredPerfTime

Performance data

Public variable

double

 

MVP

Public variable

FMmaStat< uint6...

 

PhysicalMemory

Public variable

FMemoryStat< fl...

 

PhysicalMemoryMB

System level info.

Public variable

TArray< typenam...

 

PlatformMemoryStats

Public variable

FMmaStat< int >

 

PrimitivesDrawn

Public variable

FThreadStat

 

RenderThread

Public variable

FThreadStat

 

RHIThread

Public variable

FMemoryStat< fl...

 

StreamingMemoryMB

Public variable

FString

 

Title

Title of the Snapshot

Public variable

FMmaStat< uint6...

 

VirtualMemory

Constructors

Name Description

Public function

FHealthSnapshot

(
    const TCHAR* Title
)

Create a snapshot of the current game health. Captures only memory stats.

Public function

FHealthSnapshot

(
    const TCHAR* Title,
    const FPerformanceTrackingChart...
)

Create a snapshot of the current game health. Captures both memory and performance stats.

Destructors

Name Description

Public function Virtual

~FHealthSnapshot()

Functions

Name Description

Protected function Virtual

void

 

CaptureMemoryStats()

Snapshots current memory stats

Protected function Virtual

void

 

CapturePerformanceStats

(
    const FPerformanceTrackingChart...
)

Snapshots performance stats if the given tracking chart is filled with FPS charting data (MeasuredPerfTime > 0)

Public function

void

 

Dump

(
    FOutputDevice& Ar
)

Dumps a text blob describing all stats captured by the snapshot to the given output device.

Protected function Virtual

void

 

DumpStats

(
    FOutputDevice& Ar,
    FName CategoryName
)

Dump a text blob describing all stats captured by the snapshot to the given output device with the given log category.

Classes

Name

Description

Public struct

FMemoryStat

Helper class that can describe memory in a system. Some systems may not provide Used/Peak values.

Public struct

FMmaStat

Public struct

FThreadStat

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss