MCPcopy Create free account
hub / github.com/comaps/comaps / DoSearch

Method DoSearch

libs/search/engine.cpp:263–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void Engine::DoSearch(SearchParams params, shared_ptr<ProcessorHandle> handle, Processor & processor)
264{
265 LOG(LINFO, ("Search started:", params.m_mode, params.m_viewport));
266 base::Timer timer;
267 SCOPE_GUARD(printDuration, [&timer]() { LOG(LINFO, ("Search ended in", timer.ElapsedMilliseconds(), "ms.")); });
268
269 processor.Reset();
270 handle->Attach(processor);
271 SCOPE_GUARD(detach, [&handle] { handle->Detach(); });
272
273 processor.Search(std::move(params));
274}
275} // namespace search

Callers

nothing calls this directly

Calls 5

ElapsedMillisecondsMethod · 0.80
ResetMethod · 0.45
AttachMethod · 0.45
DetachMethod · 0.45
SearchMethod · 0.45

Tested by

no test coverage detected