nw::demo::CommandListSwapper::GetGpuProfilingTotalCostTime Member Function

Syntax

f32 GetGpuProfilingTotalCostTime();

Arguments

None.

Return Values

The execution time, in milliseconds.

Description

Gets the total execution rime for the GPU profile entries.

The sum total execution time in milliseconds is obtained for all GPU profile entries for which true has been specified for the IsInTotal argument of the AddGpuProfilerStartPoint function. Note that even GPU profile entries with duplicated execution segments are simply added to make this total.

If the command list is multiplexed, the GPU profile result is lost when the Swap function executes, otherwise it is lost when the Run function executes.

Note that the target of the obtained GPU profile result is not the bound command list, but rather the command list which the WaitDone function is waiting to end.

See Also

AddGpuProfilingStartPoint
GetGpuProfilingCostTime


CONFIDENTIAL