ProfDataSourceStdin

A profiling data source that reads profiling data from stdin.

To use this, the profiled application launches despiker, gets a pipe to despiker's stdin and writes data to that pipe.

More...
class ProfDataSourceStdin : ProfDataSource {}

Constructors

this
this()

Construct a ProfDataSourceStdin.

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.

Detailed Description

The 'protocol' for sending profiling data through stdin:

Profiling data is sent in varying-size chunks with the following structure:

uint threadIdx; // Index of the profiled thread (when using multiple per-thread Profilers)
uint byteCount; // Size of profiling data in the chunk, in bytes
ubyte[byteCount]; data; // Profiling data itself.

Meta