Method

SysprofCaptureReadersave_as

Declaration [src]

bool
sysprof_capture_reader_save_as (
  SysprofCaptureReader* self,
  const char* filename
)

Description [src]

This is a convenience function for copying a capture file for which you may have already discarded the writer for.

errno is set on failure. It may be any of the errors returned by open(), fstat(), ftruncate(), lseek() or sendfile().

Parameters

filename

Type: const char*

The file to save the capture as.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: bool

TRUE on success; otherwise FALSE.