mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
tests: Print average outer-loop iteration time in cpu-test
This commit is contained in:
parent
17b5a36130
commit
2ec891d892
1 changed files with 6 additions and 2 deletions
|
|
@ -55,8 +55,12 @@
|
||||||
_s1 += _stop - _start; \
|
_s1 += _stop - _start; \
|
||||||
_s2 += (_stop - _start) * (_stop - _start); \
|
_s2 += (_stop - _start) * (_stop - _start); \
|
||||||
} \
|
} \
|
||||||
pa_log_debug("%s: %llu usec (min = %llu, max = %llu, stddev = %g).", _label, (long long unsigned int)_s1, \
|
pa_log_debug("%s: %llu usec (avg: %g, min = %llu, max = %llu, stddev = %g).", _label, \
|
||||||
(long long unsigned int)_min, (long long unsigned int)_max, sqrt(_times2 * _s2 - _s1 * _s1) / _times2); \
|
(long long unsigned int)_s1, \
|
||||||
|
((double)_s1 / _times2), \
|
||||||
|
(long long unsigned int)_min, \
|
||||||
|
(long long unsigned int)_max, \
|
||||||
|
sqrt(_times2 * _s2 - _s1 * _s1) / _times2); \
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Common defines for svolume tests */
|
/* Common defines for svolume tests */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue