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...

Constructors

this
this()

Construct a ProfDataSourceStdin.

Destructor

~this
~this()

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

Public Imports

std.typecons
public import std.typecons;

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.

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