mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-24 23:31:40 +02:00
MINOR: stats: also report the nice and number of calls for applets
Since applets are now part of the main scheduler, it's useful to report their nice value and the number of calls to the applet handler, to see where the CPU is spent.
This commit is contained in:
parent
caa8a37ffe
commit
34b1facbcf
10
src/stream.c
10
src/stream.c
@ -2911,13 +2911,14 @@ static int stats_dump_full_strm_to_buffer(struct stream_interface *si, struct st
|
||||
}
|
||||
else if ((tmpctx = objt_appctx(strm->si[0].end)) != NULL) {
|
||||
chunk_appendf(&trash,
|
||||
" app0=%p st0=%d st1=%d st2=%d applet=%s tmask=0x%lx\n",
|
||||
" app0=%p st0=%d st1=%d st2=%d applet=%s tmask=0x%lx nice=%d calls=%u\n",
|
||||
tmpctx,
|
||||
tmpctx->st0,
|
||||
tmpctx->st1,
|
||||
tmpctx->st2,
|
||||
tmpctx->applet->name,
|
||||
tmpctx->thread_mask);
|
||||
tmpctx->thread_mask,
|
||||
tmpctx->t->nice, tmpctx->t->calls);
|
||||
}
|
||||
|
||||
if ((cs = objt_cs(strm->si[1].end)) != NULL) {
|
||||
@ -2944,13 +2945,14 @@ static int stats_dump_full_strm_to_buffer(struct stream_interface *si, struct st
|
||||
}
|
||||
else if ((tmpctx = objt_appctx(strm->si[1].end)) != NULL) {
|
||||
chunk_appendf(&trash,
|
||||
" app1=%p st0=%d st1=%d st2=%d applet=%s tmask=0x%lx\n",
|
||||
" app1=%p st0=%d st1=%d st2=%d applet=%s tmask=0x%lx, nice=%d, calls=%u\n",
|
||||
tmpctx,
|
||||
tmpctx->st0,
|
||||
tmpctx->st1,
|
||||
tmpctx->st2,
|
||||
tmpctx->applet->name,
|
||||
tmpctx->thread_mask);
|
||||
tmpctx->thread_mask,
|
||||
tmpctx->t->nice, tmpctx->t->calls);
|
||||
}
|
||||
|
||||
chunk_appendf(&trash,
|
||||
|
Loading…
x
Reference in New Issue
Block a user