engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | Protected 成员函数 | 所有成员列表
FHealthSnapshot类 参考

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

#include <HealthSnapshot.h>

Public 成员函数

void Dump (FOutputDevice &Ar)
 Dumps a text blob describing all stats captured by the snapshot to the given output device. 更多...
 
 FHealthSnapshot (const TCHAR *Title)
 Create a snapshot of the current game health. 更多...
 
 FHealthSnapshot (const TCHAR *Title, const FPerformanceTrackingChart *GameplayFPSChart)
 Create a snapshot of the current game health. 更多...
 

Public 属性

FMemoryStat< float > CPUMemoryMB
 Memory data
 
double MeasuredPerfTime
 Performance data
 
FString Title
 Title of the Snapshot
 

Protected 成员函数

virtual void CaptureMemoryStats ()
 Snapshots current memory stats
 
virtual void CapturePerformanceStats (const FPerformanceTrackingChart *GameplayFPSChart)
 Snapshots performance stats if the given tracking chart is filled with FPS charting data (MeasuredPerfTime > 0)
 

详细描述

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() [1/2]

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() [2/2]

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.

成员函数说明

◆ Dump()

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.
返回
: void

该类的文档由以下文件生成: