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::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. |
| 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. |