mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
Drop constant merging check.
While without constant merging the profiler operates sub-optimally, it's not that essential to be enabled. And there are problems with it on some platforms, for example cygwin.
This commit is contained in:
parent
c1cab84329
commit
e1a63dbb53
@ -31,8 +31,6 @@ static moodycamel::ProducerToken& GetToken()
|
||||
return token;
|
||||
}
|
||||
|
||||
extern const char* PointerCheckA;
|
||||
const char* PointerCheckB = "tracy";
|
||||
|
||||
#ifndef TRACY_DISABLE
|
||||
Profiler s_profiler;
|
||||
@ -49,13 +47,6 @@ Profiler::Profiler()
|
||||
, m_buffer( new char[TargetFrameSize*3] )
|
||||
, m_bufferOffset( 0 )
|
||||
{
|
||||
// This check verifies that the string literals from different compilation units are placed at the
|
||||
// same address by the linker.
|
||||
// MSVC: make sure "Enable String Pooling" is active (/GF).
|
||||
// gcc: make sure -fmerge-constants is enabled (it is automatically enabled only in optimized builds).
|
||||
// clang: seems to be enabled by default.
|
||||
assert( PointerCheckA == PointerCheckB );
|
||||
|
||||
assert( !s_instance );
|
||||
s_instance = this;
|
||||
|
||||
|
@ -12,8 +12,6 @@
|
||||
namespace tracy
|
||||
{
|
||||
|
||||
const char* PointerCheckA = "tracy";
|
||||
|
||||
void SetThreadName( std::thread& thread, const char* name )
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
Loading…
x
Reference in New Issue
Block a user