From ddabb7b7fe99df38574d18c266c5ad1fdc008082 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sun, 25 Jan 2015 02:09:15 +0300 Subject: [PATCH] Simple C++ search logging. --- search/search_engine.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/search/search_engine.cpp b/search/search_engine.cpp index b2e19127df..c6418ea7da 100644 --- a/search/search_engine.cpp +++ b/search/search_engine.cpp @@ -19,6 +19,8 @@ #include "../std/vector.hpp" #include "../std/bind.hpp" +#include "../3party/Alohalytics/src/alohalytics.h" + namespace search { @@ -227,6 +229,9 @@ void Engine::EmitResults(SearchParams const & params, Results & res) // } m_searchResults = res; + // Basic test of our statistics engine. + alohalytics::LogEvent("searchEmitResults", + alohalytics::TStringMap({{params.m_query, strings::to_string(res.GetCount())}})); params.m_callback(res); }