Пример #1
0
void
perf_print_counter(perf_counter_t handle)
{
	if (handle == NULL) {
		return;
	}

	perf_print_counter_fd(1, handle);
}
Пример #2
0
void
perf_print_all(int fd)
{
	perf_counter_t handle = (perf_counter_t)sq_peek(&perf_counters);

	while (handle != NULL) {
		perf_print_counter_fd(fd, handle);
		handle = (perf_counter_t)sq_next(&handle->link);
	}
}
Пример #3
0
void
perf_print_all(int fd)
{
	pthread_mutex_lock(&perf_counters_mutex);
	perf_counter_t handle = (perf_counter_t)sq_peek(&perf_counters);

	while (handle != NULL) {
		perf_print_counter_fd(fd, handle);
		handle = (perf_counter_t)sq_next(&handle->link);
	}

	pthread_mutex_unlock(&perf_counters_mutex);
}
Пример #4
0
void
perf_print_counter(perf_counter_t handle)
{
	perf_print_counter_fd(1, handle);
}