Method

SysprofCaptureWritersplice

Declaration [src]

bool
sysprof_capture_writer_splice (
  SysprofCaptureWriter* self,
  SysprofCaptureWriter* dest
)

Description [src]

This function will copy the capture self into the capture dest. This tries to be semi-efficient by using sendfile() to copy the contents between the captures. self and dest will be flushed before the contents are copied into the dest file-descriptor.

errno is set on error, to any of the errors returned by sysprof_capture_writer_flush(), lseek() or _sysprof_capture_writer_splice_from_fd().

Parameters

dest

Type: SysprofCaptureWriter

An SysprofCaptureWriter.

The data is owned by the caller of the method.

Return value

Type: bool

TRUE if successful, otherwise FALSE and and errno is set.