0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 08:41:02 +08:00

begin/end time for Linux too

This commit is contained in:
Victor Zarubkin 2016-09-24 00:15:33 +03:00
parent 6cae6901de
commit e600c2f5cd

View File

@ -463,19 +463,23 @@ void ProfileManager::setEnabled(bool isEnable)
if (prev == isEnable)
return;
#ifdef _WIN32
if (isEnable)
{
m_beginTime = time;
#ifdef _WIN32
if (m_isEventTracingEnabled.load(std::memory_order_acquire))
EasyEventTracer::instance().enable(true);
#endif
}
else
{
m_endTime = time;
#ifdef _WIN32
EasyEventTracer::instance().disable();
}
#endif
}
}
void ProfileManager::setEventTracingEnabled(bool _isEnable)