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:
parent
6cae6901de
commit
e600c2f5cd
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user