variableRange

Construct a VariableRange directly from profile data.

@safe pure nothrow @nogc
variableRange
(
const(ubyte)[] profileData
)

Parameters

profileData const(ubyte)[]

Profile data recorded by a Profiler. Note that modifying or concatenating raw profile data is unsafe unless you know what you're doing.

Examples

// Profiler profiler;

// Create a VariableRange from profile data with UFCS syntax.
auto variables = profiler.profileData.variableRange;
foreach(variable; variables)
{
    import std.stdio;
    writeln(variable);
}

Meta