diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-03-11 11:26:27 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-03-11 11:26:27 +0000 |
commit | 5aea402866a076955059a90256a710f6e3deb38a (patch) | |
tree | 7bc8cb92dbc5d8a88cfd218f5a078acfce2460d5 /searchcore | |
parent | 95ff3d852fc369167b42d4c6f624873ee21de542 (diff) |
Let done be an end signal that computes duration..
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matchengine/matchengine.cpp | 2 | ||||
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matchengine/matchengine.cpp b/searchcore/src/vespa/searchcore/proton/matchengine/matchengine.cpp index 25bb7695a01..c7016d711cb 100644 --- a/searchcore/src/vespa/searchcore/proton/matchengine/matchengine.cpp +++ b/searchcore/src/vespa/searchcore/proton/matchengine/matchengine.cpp @@ -142,7 +142,7 @@ MatchEngine::performSearch(search::engine::SearchRequest::Source req, ret->setDistributionKey(_distributionKey); if (ret->request->trace().getLevel() > 0) { ret->request->trace().getRoot().setLong("distribution-key", _distributionKey); - ret->request->trace().addEvent(4, "Search completed !"); + ret->request->trace().done(); search::fef::Properties & trace = ret->propertiesMap.lookupCreate("trace"); vespalib::SmartBuffer output(4096); vespalib::slime::BinaryFormat::encode(ret->request->trace().getSlime(), output); diff --git a/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp b/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp index 6c2420c8745..398ebe6048e 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp @@ -445,6 +445,7 @@ MatchThread::run() trace->addEvent(4, "Start thread merge"); mergeDirector.dualMerge(thread_id, *resultContext->result, resultContext->groupingSource); trace->addEvent(4, "MatchThread::run Done"); + trace->done(); } } |