Remove GetNewId() from Profiler interface.

This commit is contained in:
Bartosz Taudul 2017-09-27 01:02:04 +02:00
parent f584bf76e8
commit 3cc7cc596e
2 changed files with 4 additions and 6 deletions

View File

@ -37,6 +37,10 @@ static moodycamel::ProducerToken& GetToken()
static std::atomic<uint64_t> s_id( 0 ); static std::atomic<uint64_t> s_id( 0 );
static inline uint64_t GetNewId()
{
return s_id.fetch_add( 1, std::memory_order_relaxed );
}
#ifndef TRACY_DISABLE #ifndef TRACY_DISABLE
Profiler s_profiler; Profiler s_profiler;
@ -74,11 +78,6 @@ Profiler::~Profiler()
s_instance = nullptr; s_instance = nullptr;
} }
uint64_t Profiler::GetNewId()
{
return s_id.fetch_add( 1, std::memory_order_relaxed );
}
uint64_t Profiler::ZoneBegin( QueueZoneBegin&& data ) uint64_t Profiler::ZoneBegin( QueueZoneBegin&& data )
{ {
auto id = GetNewId(); auto id = GetNewId();

View File

@ -32,7 +32,6 @@ public:
Profiler(); Profiler();
~Profiler(); ~Profiler();
static uint64_t GetNewId();
static int64_t GetTime() static int64_t GetTime()
{ {
#if defined _MSC_VER || defined __CYGWIN__ #if defined _MSC_VER || defined __CYGWIN__