capture: use plural naming for request_counters()

This commit is contained in:
Christian Hergert
2020-08-19 15:14:53 -07:00
parent 361b29a459
commit 7b74c73205
2 changed files with 39 additions and 39 deletions

View File

@ -849,7 +849,7 @@ sysprof_collector_set_counters (const unsigned int *counters_ids,
} }
unsigned int unsigned int
sysprof_collector_request_counter (unsigned int n_counters) sysprof_collector_request_counters (unsigned int n_counters)
{ {
unsigned int ret = 0; unsigned int ret = 0;

View File

@ -64,54 +64,54 @@
SYSPROF_BEGIN_DECLS SYSPROF_BEGIN_DECLS
SYSPROF_AVAILABLE_IN_3_36 SYSPROF_AVAILABLE_IN_3_36
void sysprof_collector_init (void); void sysprof_collector_init (void);
SYSPROF_AVAILABLE_IN_3_38 SYSPROF_AVAILABLE_IN_3_38
bool sysprof_collector_is_active (void); bool sysprof_collector_is_active (void);
SYSPROF_AVAILABLE_IN_3_36 SYSPROF_AVAILABLE_IN_3_36
void sysprof_collector_allocate (SysprofCaptureAddress alloc_addr, void sysprof_collector_allocate (SysprofCaptureAddress alloc_addr,
int64_t alloc_size, int64_t alloc_size,
SysprofBacktraceFunc backtrace_func, SysprofBacktraceFunc backtrace_func,
void *backtrace_data); void *backtrace_data);
SYSPROF_AVAILABLE_IN_3_36 SYSPROF_AVAILABLE_IN_3_36
void sysprof_collector_sample (SysprofBacktraceFunc backtrace_func, void sysprof_collector_sample (SysprofBacktraceFunc backtrace_func,
void *backtrace_data); void *backtrace_data);
SYSPROF_AVAILABLE_IN_3_36 SYSPROF_AVAILABLE_IN_3_36
void sysprof_collector_mark (int64_t time, void sysprof_collector_mark (int64_t time,
int64_t duration, int64_t duration,
const char *group, const char *group,
const char *mark, const char *mark,
const char *message); const char *message);
SYSPROF_AVAILABLE_IN_3_38 SYSPROF_AVAILABLE_IN_3_38
void sysprof_collector_mark_printf (int64_t time, void sysprof_collector_mark_printf (int64_t time,
int64_t duration, int64_t duration,
const char *group, const char *group,
const char *mark, const char *mark,
const char *message_format, const char *message_format,
...) SYSPROF_PRINTF(5, 6); ...) SYSPROF_PRINTF(5, 6);
SYSPROF_AVAILABLE_IN_3_38 SYSPROF_AVAILABLE_IN_3_38
void sysprof_collector_mark_vprintf (int64_t time, void sysprof_collector_mark_vprintf (int64_t time,
int64_t duration, int64_t duration,
const char *group, const char *group,
const char *mark, const char *mark,
const char *message_format, const char *message_format,
va_list args) SYSPROF_PRINTF(5, 0); va_list args) SYSPROF_PRINTF(5, 0);
SYSPROF_AVAILABLE_IN_3_36 SYSPROF_AVAILABLE_IN_3_36
void sysprof_collector_log (int severity, void sysprof_collector_log (int severity,
const char *domain, const char *domain,
const char *message); const char *message);
SYSPROF_AVAILABLE_IN_3_38 SYSPROF_AVAILABLE_IN_3_38
void sysprof_collector_log_printf (int severity, void sysprof_collector_log_printf (int severity,
const char *domain, const char *domain,
const char *format, const char *format,
...) SYSPROF_PRINTF (3, 4); ...) SYSPROF_PRINTF (3, 4);
SYSPROF_AVAILABLE_IN_3_38 SYSPROF_AVAILABLE_IN_3_38
unsigned int sysprof_collector_request_counter (unsigned int n_counters); unsigned int sysprof_collector_request_counters (unsigned int n_counters);
SYSPROF_AVAILABLE_IN_3_38 SYSPROF_AVAILABLE_IN_3_38
void sysprof_collector_define_counters (const SysprofCaptureCounter *counters, void sysprof_collector_define_counters (const SysprofCaptureCounter *counters,
unsigned int n_counters); unsigned int n_counters);
SYSPROF_AVAILABLE_IN_3_38 SYSPROF_AVAILABLE_IN_3_38
void sysprof_collector_set_counters (const unsigned int *counters_ids, void sysprof_collector_set_counters (const unsigned int *counters_ids,
const SysprofCaptureCounterValue *values, const SysprofCaptureCounterValue *values,
unsigned int n_counters); unsigned int n_counters);
SYSPROF_END_DECLS SYSPROF_END_DECLS