]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: debug: report each thread's cpu usage in "show thread"
authorWilly Tarreau <w@1wt.eu>
Mon, 20 May 2019 18:52:20 +0000 (20:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 May 2019 19:14:14 +0000 (21:14 +0200)
commit9c8800af3b595e229e1a55aef5a7953ce16cc67f
tree2a177821fcefe1e61b1ce504d9a492b64fd7769c
parent219b829b623f66636efb7ddcc07a7e24b0aa9f63
MINOR: debug: report each thread's cpu usage in "show thread"

Now we can report each thread's CPU time, both at wake up (poll) and
retrieved while dumping (now), then the difference, which directly
indicates how long the thread has been running uninterrupted. A very
high value for the diff could indicate a deadlock, especially if it
happens between two threads. Note that it may occasionally happen
that a wrong value is displayed since nothing guarantees that the
date is read atomically.
src/debug.c