diff options
author | Vito Caputo <vcaputo@gnugeneration.com> | 2015-12-07 11:28:18 -0800 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-05-17 15:22:14 +0200 |
commit | 9570dec98aff9489c9323683061cec93bb92d654 (patch) | |
tree | 8228295829aaf4088a387c37641e84bbbcfff963 /src/basic/string-util.c | |
parent | 5f6ccb514798532d84fa6164d4358d066ccdfdd0 (diff) |
sd-event: instrument sd_event_run() for profiling delays
Set SD_EVENT_PROFILE_DELAYS to activate accounting and periodic logging
of the distribution of delays between sd_event_run() calls.
Time spent in dispatching as well as time spent outside of
sd_event_run() is measured and accounted for. Every 5 seconds a
logarithmic histogram loop iteration delays since 5 seconds previous is
logged.
This is useful in identifying the frequency and magnitude of latencies
affecting the event loop, which should be kept to a minimum.
Diffstat (limited to 'src/basic/string-util.c')
0 files changed, 0 insertions, 0 deletions