From: Vsevolod Stakhov Date: Tue, 24 Dec 2019 16:27:32 +0000 (+0000) Subject: [Minor] Enable profiling on slow regexps X-Git-Tag: 2.3~173 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bdad45f8aa525378e5c2081798b88f7c9ca72e44;p=rspamd.git [Minor] Enable profiling on slow regexps --- diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c index 3c9cec01f..1579092dc 100644 --- a/src/libserver/re_cache.c +++ b/src/libserver/re_cache.c @@ -591,6 +591,7 @@ rspamd_re_cache_process_pcre (struct rspamd_re_runtime *rt, t2 = rspamd_get_ticks (TRUE); if (t2 - t1 > slow_time) { + rspamd_symcache_enable_profile (task); msg_info_task ("regexp '%16s' took %.0f ticks to execute", rspamd_regexp_get_pattern (re), t2 - t1); }