mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 08:21:09 +01:00
ircd::ctx: Tweak default profiling values; fix fmt:: specifier.
This commit is contained in:
parent
2b0d74c862
commit
adf408d4b0
1 changed files with 4 additions and 4 deletions
|
@ -536,10 +536,10 @@ namespace prof {
|
||||||
|
|
||||||
struct settings settings
|
struct settings settings
|
||||||
{
|
{
|
||||||
0.66, // stack_usage_warning
|
0.46, // stack_usage_warning
|
||||||
0.87, // stack_usage_assertion
|
0.67, // stack_usage_assertion
|
||||||
|
|
||||||
5000us, // slice_warning
|
50ms, // slice_warning
|
||||||
0us, // slice_interrupt
|
0us, // slice_interrupt
|
||||||
0us, // slice_assertion
|
0us, // slice_assertion
|
||||||
};
|
};
|
||||||
|
@ -614,7 +614,7 @@ ircd::ctx::prof::check_slice()
|
||||||
|
|
||||||
if(unlikely(settings.slice_warning > 0us && time_usage >= settings.slice_warning))
|
if(unlikely(settings.slice_warning > 0us && time_usage >= settings.slice_warning))
|
||||||
{
|
{
|
||||||
log::warning("CONTEXT TIMESLICE EXCEEDED (%p) '%s' last: %06ldus total: %06ldus",
|
log::warning("CONTEXT TIMESLICE EXCEEDED (%p) '%s' last: %06ld$us total: %06ld$us",
|
||||||
(const void *)&c,
|
(const void *)&c,
|
||||||
c.name,
|
c.name,
|
||||||
duration_cast<microseconds>(time_usage).count(),
|
duration_cast<microseconds>(time_usage).count(),
|
||||||
|
|
Loading…
Reference in a new issue