zoneRange

Construct a ZoneRange directly from profile data.

@safe pure nothrow @nogc
zoneRange
(
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 ZoneRange from profile data with UFCS syntax.
auto zones = profiler.profileData.zoneRange;
foreach(zone; zones)
{
    import std.stdio;
    writeln(zone);
}

Meta