Constructor

SysprofTracefdConsumernew

Declaration [src]

SysprofInstrument*
sysprof_tracefd_consumer_new (
  int trace_fd
)

Description [src]

This function will take ownership of trace_fd, If you need to keep a copy of your FD then it is suggested you use dup() to copy the file descriptor.

Parameters

trace_fd

Type: int

A file-descriptor to read from.

Return value

Type: SysprofInstrument

A SysprofInstrument.

The caller of the function takes ownership of the data, and is responsible for freeing it.