Function

SysprofCaptureConditionnew_where_file

Declaration [src]

SysprofCaptureCondition*
sysprof_capture_condition_new_where_file (
  const char* path
)

Description [src]

Creates a new condition that matches SysprofCaptureFileChunk frames which contain the path path.

This function is not directly available to language bindings.

Parameters

path

Type: const char*

A file path to lookup.

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

Return value

Type: SysprofCaptureCondition

A new SysprofCaptureCondition, or NULL on allocation failure.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.