profiling property

set profiling (bool on)

Times every dispatch on the GPU while on, for takeProfile. Vulkan writes timestamps around each; Metal, which has none inside a command buffer, commits and waits for every dispatch separately, so a forward pass takes far longer on the wall clock while this is on.

Implementation

static set profiling(bool on) => _setProfiling(on ? 1 : 0);