UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FCPUTimeDump Struct Reference

Public Member Functions

 FCPUTimeDump ()
 
void ExecuteCommand (const TArray< FString > &Args)
 

Static Public Member Functions

static FCPUTimeDumpGet ()
 

Protected Member Functions

bool OnAddCPUTime (float)
 
bool OnCPUTimeDump (float)
 

Protected Attributes

TArray< FCPUTimeCPUTimes
 
FTickerDelegate GetCPUTimeDelegate
 
FTickerDelegate CPUTimeDumpDelegate
 
FTSTicker::FDelegateHandle GetCPUTimeDelegateHandle
 
FTSTicker::FDelegateHandle CPUTimeDumpDelegateHandle
 

Detailed Description

Implements CPUTimeDumpCommand command.

Constructor & Destructor Documentation

◆ FCPUTimeDump()

FCPUTimeDump::FCPUTimeDump ( )
inline

Default constructor.

Member Function Documentation

◆ ExecuteCommand()

void FCPUTimeDump::ExecuteCommand ( const TArray< FString > &  Args)
inline

Executes the CPUTime.Dump command.

◆ Get()

static FCPUTimeDump & FCPUTimeDump::Get ( )
inlinestatic

Gets FCPUTimeDump singleton instance.

◆ OnAddCPUTime()

bool FCPUTimeDump::OnAddCPUTime ( float  )
inlineprotected

Retrieves the current CPU time.

◆ OnCPUTimeDump()

bool FCPUTimeDump::OnCPUTimeDump ( float  )
inlineprotected

Prints the average CPU time from the last n frames.

Member Data Documentation

◆ CPUTimeDumpDelegate

FTickerDelegate FCPUTimeDump::CPUTimeDumpDelegate
protected

Ticker delegate for printing the average CPU usage, called every nth frame.

◆ CPUTimeDumpDelegateHandle

FTSTicker::FDelegateHandle FCPUTimeDump::CPUTimeDumpDelegateHandle
protected

Handle for the added CPUTimeDumpDelegate delegate.

◆ CPUTimes

TArray<FCPUTime> FCPUTimeDump::CPUTimes
protected

Array of CPU times.

◆ GetCPUTimeDelegate

FTickerDelegate FCPUTimeDump::GetCPUTimeDelegate
protected

Ticker delegate for getting the current CPU usage, called once per frame.

◆ GetCPUTimeDelegateHandle

FTSTicker::FDelegateHandle FCPUTimeDump::GetCPUTimeDelegateHandle
protected

Handle for the added GetCPUTimeDelegate delegate.


The documentation for this struct was generated from the following file: