mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00: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
|
||||
{
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user