Searched refs:LATENCY_SAMPLE_SIZE (Results 1 – 3 of 3) sorted by relevance
114 if (ws->latency.next_sample == LATENCY_SAMPLE_SIZE) { in capture_latency_sample()123 qsort(ws->latency.samples, LATENCY_SAMPLE_SIZE, sizeof(ws->latency.samples[0]), greater_than); in capture_latency_sample()124 median = ws->latency.samples[LATENCY_SAMPLE_SIZE - 1]; in capture_latency_sample()126 for (i = 0; i < LATENCY_SAMPLE_SIZE; i ++) { in capture_latency_sample()130 mean = total / LATENCY_SAMPLE_SIZE; in capture_latency_sample()131 for (i = 0; i < LATENCY_SAMPLE_SIZE; i ++) { in capture_latency_sample()137 rms = (uint64_t)sqrt(sum_of_squares / LATENCY_SAMPLE_SIZE); in capture_latency_sample()
435 #define LATENCY_SAMPLE_SIZE 1024 macro
323 uint32_t samples[LATENCY_SAMPLE_SIZE];