Prevent fake loop from optimizing out.

This commit is contained in:
Bartosz Taudul 2017-10-01 17:42:22 +02:00
parent 7b0cbef0d7
commit 99b8c4c77e

View File

@ -321,11 +321,11 @@ void Profiler::CalibrateTimer()
class FakeZone
{
public:
FakeZone( const SourceLocation* srcloc ) {}
FakeZone( const SourceLocation* srcloc ) : m_id( (uint64_t)srcloc ) {}
~FakeZone() {}
private:
uint64_t m_id;
volatile uint64_t m_id;
};
void Profiler::CalibrateDelay()