mirror of
https://github.com/matrix-construct/construct
synced 2024-10-01 05:08:59 +02:00
ircd::net::dns: Add syscall_usage_warning timer around netdb related.
This commit is contained in:
parent
6679b66806
commit
5a3ed6e4b3
1 changed files with 4 additions and 0 deletions
|
@ -569,6 +569,10 @@ try
|
||||||
{
|
{
|
||||||
thread_local struct ::servent res, *ent {nullptr};
|
thread_local struct ::servent res, *ent {nullptr};
|
||||||
thread_local char _name[32], _prot[32], buf[2048];
|
thread_local char _name[32], _prot[32], buf[2048];
|
||||||
|
const prof::syscall_usage_warning timer
|
||||||
|
{
|
||||||
|
"net::dns::service_port(%s)", name
|
||||||
|
};
|
||||||
|
|
||||||
strlcpy(_name, name);
|
strlcpy(_name, name);
|
||||||
strlcpy(_prot, prot);
|
strlcpy(_prot, prot);
|
||||||
|
|
Loading…
Reference in a new issue