1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

This patch revives PP poorman's profiling using StopWatch class

This commit is contained in:
Roman Nozdrin
2021-04-08 12:06:22 +00:00
parent fd720bfd7d
commit 895cbbe2d1
3 changed files with 12 additions and 10 deletions

View File

@ -2628,7 +2628,7 @@ bool BPPV::aborted()
}
#ifdef PRIMPROC_STOPWATCH
map<pthread_t, logging::StopWatch*> stopwatchMap;
std::unordered_map<pthread_t, logging::StopWatch*> stopwatchMap;
pthread_mutex_t stopwatchMapMutex;
bool stopwatchThreadCreated = false;
@ -2670,7 +2670,7 @@ void* autoFinishStopwatchThread(void* arg)
pause_(2);
count++;
// Iterate through the stopwatch map and see how long it's been since last activity.
map<pthread_t, logging::StopWatch*>::iterator stopwatchMapIter = stopwatchMap.begin();
auto stopwatchMapIter = stopwatchMap.begin();
logging::StopWatch* stopwatch;
gettimeofday(&tvCurrent, 0);
bool primProcIdle = true;