eventRange

Construct an EventRange directly from profile data.

ForwardRange of Event.

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

Parameters

profileData const(ubyte)[]

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

Examples

// Profiler profiler;

// Create an EventRange from profile data with UFCS syntax.
auto events = profiler.profileData.eventRange;
foreach(event; events)
{
    import std.stdio;
    writeln(event);
}

Meta