mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
ircd::ctx: Improve some prof log messages.
This commit is contained in:
parent
e2cb79e28d
commit
3df645fcfb
1 changed files with 6 additions and 5 deletions
11
ircd/ctx.cc
11
ircd/ctx.cc
|
@ -1395,10 +1395,10 @@ ircd::ctx::prof::check_slice()
|
||||||
if(unlikely(slice_warning > 0 && last_cycles >= slice_warning))
|
if(unlikely(slice_warning > 0 && last_cycles >= slice_warning))
|
||||||
log::dwarning
|
log::dwarning
|
||||||
{
|
{
|
||||||
"context timeslice exceeded '%s' #%lu total: %lu last: %lu",
|
"context '%s' #%lu watchdog: timeslice excessive; lim:%lu last:%lu",
|
||||||
name(c),
|
name(c),
|
||||||
id(c),
|
id(c),
|
||||||
cycles(c),
|
slice_warning,
|
||||||
last_cycles
|
last_cycles
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1409,11 +1409,12 @@ ircd::ctx::prof::check_slice()
|
||||||
if(unlikely(slice_interrupt > 0 && last_cycles >= slice_interrupt))
|
if(unlikely(slice_interrupt > 0 && last_cycles >= slice_interrupt))
|
||||||
throw interrupted
|
throw interrupted
|
||||||
{
|
{
|
||||||
"context '%s' #%lu watchdog interrupt (total: %lu last: %lu)",
|
"context '%s' #%lu watchdog interrupt; lim:%lu last:%lu total:%lu",
|
||||||
name(c),
|
name(c),
|
||||||
id(c),
|
id(c),
|
||||||
|
slice_interrupt,
|
||||||
|
last_cycles,
|
||||||
cycles(c),
|
cycles(c),
|
||||||
last_cycles
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1430,7 +1431,7 @@ ircd::ctx::prof::check_stack()
|
||||||
{
|
{
|
||||||
log::dwarning
|
log::dwarning
|
||||||
{
|
{
|
||||||
"context stack usage ctx '%s' #%lu used %zu of %zu bytes",
|
"context '%s' #%lu watchdog: stack used %zu of %zu bytes",
|
||||||
name(c),
|
name(c),
|
||||||
id(c),
|
id(c),
|
||||||
stack_at,
|
stack_at,
|
||||||
|
|
Loading…
Reference in a new issue