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.

Inherited Members

From ProfDataSource

receiveChunk
bool receiveChunk(out ProfileDataChunk chunk)

Try to receive a _chunk of profiling data.

Examples

1 // Dumping profile data from multiple profilers, where each profiler is used to 
2 // profile one thread:
3 
4 // Profiler[] threadProfilers;
5 foreach(threadIdx, threadProfiler; threadProfilers)
6 {
7    auto file = File("profile%s.raw.prof".format(threadIdx), "wb");
8    file.rawWrite(threadProfiler.profileData);
9 }

Meta