Profiler.variableEvent

Emit a variable event.

Used to keep track of various variables that change over time, e.g. FPS, network traffic, entity count...; Despiker supports viewing the value of a variable once per frame.

class Profiler
@trusted nothrow
void
variableEvent
(
string name
V
)
(
const V value
)

Parameters

name

Variable name (specified at compile-time). The variable event itself does not contain the name; the name is stored in an info event immediately after the variable event.

V

Variable type. Only int, uint and float are supported at the moment.

value V

Value of the variable

Examples

// Profiler profiler
profiler.variableEvent!"FPS"(4.5f);

Meta