mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Rename DISABLE_LZ4 to TRACY_DISABLE_LZ4.
This commit is contained in:
parent
7c47edc64f
commit
6a2cbe2842
@ -28,7 +28,7 @@
|
|||||||
#include "TracyThread.hpp"
|
#include "TracyThread.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
# define DISABLE_LZ4
|
# define TRACY_DISABLE_LZ4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
@ -158,7 +158,7 @@ void Profiler::Worker()
|
|||||||
while( m_timeBegin.load( std::memory_order_relaxed ) == 0 ) std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) );
|
while( m_timeBegin.load( std::memory_order_relaxed ) == 0 ) std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) );
|
||||||
|
|
||||||
WelcomeMessage welcome;
|
WelcomeMessage welcome;
|
||||||
#ifdef DISABLE_LZ4
|
#ifdef TRACY_DISABLE_LZ4
|
||||||
// notify client that lz4 compression is disabled (too slow in debug builds)
|
// notify client that lz4 compression is disabled (too slow in debug builds)
|
||||||
welcome.lz4 = 0;
|
welcome.lz4 = 0;
|
||||||
#else
|
#else
|
||||||
@ -255,7 +255,7 @@ Profiler::DequeueStatus Profiler::Dequeue( moodycamel::ConsumerToken& token )
|
|||||||
|
|
||||||
bool Profiler::SendData( const char* data, size_t len )
|
bool Profiler::SendData( const char* data, size_t len )
|
||||||
{
|
{
|
||||||
#ifdef DISABLE_LZ4
|
#ifdef TRACY_DISABLE_LZ4
|
||||||
if( m_sock->Send( data, (int)len ) == -1 ) return false;
|
if( m_sock->Send( data, (int)len ) == -1 ) return false;
|
||||||
#else
|
#else
|
||||||
char lz4[LZ4Size + sizeof( lz4sz_t )];
|
char lz4[LZ4Size + sizeof( lz4sz_t )];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user