aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-08-25 13:50:35 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-08-25 13:50:35 +0400
commitb8c51743357c4bc1fc5067dc0bd5e8992310c93d (patch)
tree107b63862fa9ed007f5b52ac318bde810b921a6e /src/fuzzy_storage.c
parentc902ecdf5a000d02884dbcd811e7f97b5477ad9f (diff)
downloadrspamd-b8c51743357c4bc1fc5067dc0bd5e8992310c93d.tar.gz
rspamd-b8c51743357c4bc1fc5067dc0bd5e8992310c93d.zip
* Improve google perf tools support
* Pass to event_add only copies of struct timeval to avoid timing problems
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r--src/fuzzy_storage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index 296e81562..53f3d9b16 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -478,6 +478,7 @@ start_fuzzy_storage (struct rspamd_worker *worker)
event_set(&worker->bind_ev, worker->cf->listen_sock, EV_READ | EV_PERSIST, accept_fuzzy_socket, (void *)worker);
event_add(&worker->bind_ev, NULL);
+ gperf_profiler_init (worker->srv->cfg, "fuzzy");
event_loop (0);
exit (EXIT_SUCCESS);