ProfDataSourceRaw

A profiling data source that reads raw profiling data from files.

To use this, despiker can be launched manually with the `-r` parameter to specify the raw files.

The files can be created simply by dumping profile data from a file.

Constructors

this
this(string[] filenames)

Construct a ProfDataSourceRaw.

Destructor

~this
~this()

Destroy the data source. Must be called by the user.

Members

Functions

receiveChunk
bool receiveChunk(ProfileDataChunk chunk)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From ProfDataSource

receiveChunk
bool receiveChunk(ProfileDataChunk chunk)

Try to receive a _chunk of profiling data.

Examples

// Dumping profile data from multiple profilers, where each profiler is used to 
// profile one thread:

// Profiler[] threadProfilers;
foreach(threadIdx, threadProfiler; threadProfilers)
{
    auto file = File("profile%s.raw.prof".format(threadIdx), "wb");
    file.rawWrite(threadProfiler.profileData);
}

Meta