diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-24 16:27:32 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-24 16:27:32 +0000 |
commit | bdad45f8aa525378e5c2081798b88f7c9ca72e44 (patch) | |
tree | 7296fe5e0cb092b5c67da430b3499bf36c06dc16 /src | |
parent | f827a09afb7785c97010e7116dc63b61efde6a25 (diff) | |
download | rspamd-bdad45f8aa525378e5c2081798b88f7c9ca72e44.tar.gz rspamd-bdad45f8aa525378e5c2081798b88f7c9ca72e44.zip |
[Minor] Enable profiling on slow regexps
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/re_cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |