Method

SysprofDocumentfind_counter

Declaration [src]

SysprofDocumentCounter*
sysprof_document_find_counter (
  SysprofDocument* self,
  const char* category,
  const char* name
)

Description [src]

Finds the first counter matching category and name.

Parameters

category

Type: const char*

The category of the counter.

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

Type: const char*

The name of the counter.

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

Return value

Type: SysprofDocumentCounter

A SysprofDocumentCounter or NULL.

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