mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Prevent fake loop from optimizing out.
This commit is contained in:
parent
7b0cbef0d7
commit
99b8c4c77e
@ -321,11 +321,11 @@ void Profiler::CalibrateTimer()
|
|||||||
class FakeZone
|
class FakeZone
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FakeZone( const SourceLocation* srcloc ) {}
|
FakeZone( const SourceLocation* srcloc ) : m_id( (uint64_t)srcloc ) {}
|
||||||
~FakeZone() {}
|
~FakeZone() {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint64_t m_id;
|
volatile uint64_t m_id;
|
||||||
};
|
};
|
||||||
|
|
||||||
void Profiler::CalibrateDelay()
|
void Profiler::CalibrateDelay()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user