Skip to content

Commit

Permalink
Additional time measurement added to sql_execute_impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Averbukh committed Jan 15, 2021
1 parent 79a33e2 commit 52fe343
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ThriftHandler/DBHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5151,6 +5151,12 @@ void DBHandler::sql_execute_impl(TQueryResult& _return,
*legacylockmgr::LockMgr<mapd_shared_mutex, bool>::getMutex(
legacylockmgr::ExecutorOuterLock, true));

const auto tt1_0 = Clock::now();
LOG(INFO)
<< "[Averbukh] Part 1.1.1 of sql_execute_impl finished in "
<< std::chrono::duration_cast<std::chrono::milliseconds>(tt1_0 - tt1).count()
<< " ms";

std::string query_ra;
_return.execution_time_ms += measure<>::execution([&]() {
TPlanResult result;
Expand Down

0 comments on commit 52fe343

Please sign in to comment.