diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@intel.com> | 2009-12-23 13:57:03 -0600 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-05 21:27:25 +0100 |
commit | 0e47065fe5a410bcb7c367c23fc4d99b71fd82b2 (patch) | |
tree | db673f61f6579b58a57ebedadbb1c54ec540c666 /src/pulsecore/cli.c | |
parent | a282eadb88f26cea183399dba267d619bbdcd6df (diff) |
Subject: rtpoll: better support for DEBUG_TIMING logs
On all the platforms I tested, PulseAudio is frequently awaken and
doesn't sleep for the duration specified for the poll timeout.
Sometimes wake-ups occur within milliseconds of the poll call for no
good reason; this seems to be related to ALSA issues (see my posts on
the ALSA mailing list on null poll events).
This patch enables a better log of requested sleep times v. actual
sleep times. Enable DEBUG_TIMING to see actual messages. Please let me
know if you see odd behaviors like the one below
- Pierre
E: rtpoll.c: rtpoll_run
E: rtpoll.c: poll timeout: 188 ms
E: rtpoll.c: Process time 0 ms; sleep time 48 ms
E: rtpoll.c: rtpoll_run
E: rtpoll.c: rtpoll finish
E: rtpoll.c: rtpoll_run
E: rtpoll.c: poll timeout: 139 ms
E: rtpoll.c: Process time 0 ms; sleep time 49 ms
E: rtpoll.c: rtpoll_run
E: rtpoll.c: rtpoll finish
E: rtpoll.c: rtpoll_run
E: rtpoll.c: poll timeout: 189 ms
E: rtpoll.c: Process time 0 ms; sleep time 0 ms
E: rtpoll.c: rtpoll_run
E: rtpoll.c: rtpoll finish
E: rtpoll.c: rtpoll_run
E: rtpoll.c: poll timeout: 189 ms
E: rtpoll.c: Process time 0 ms; sleep time 49 ms
Diffstat (limited to 'src/pulsecore/cli.c')
0 files changed, 0 insertions, 0 deletions