mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Remove GetNewId() from Profiler interface.
This commit is contained in:
parent
f584bf76e8
commit
3cc7cc596e
@ -37,6 +37,10 @@ static moodycamel::ProducerToken& GetToken()
|
||||
|
||||
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
|
||||
Profiler s_profiler;
|
||||
@ -74,11 +78,6 @@ Profiler::~Profiler()
|
||||
s_instance = nullptr;
|
||||
}
|
||||
|
||||
uint64_t Profiler::GetNewId()
|
||||
{
|
||||
return s_id.fetch_add( 1, std::memory_order_relaxed );
|
||||
}
|
||||
|
||||
uint64_t Profiler::ZoneBegin( QueueZoneBegin&& data )
|
||||
{
|
||||
auto id = GetNewId();
|
||||
|
@ -32,7 +32,6 @@ public:
|
||||
Profiler();
|
||||
~Profiler();
|
||||
|
||||
static uint64_t GetNewId();
|
||||
static int64_t GetTime()
|
||||
{
|
||||
#if defined _MSC_VER || defined __CYGWIN__
|
||||
|
Loading…
Reference in New Issue
Block a user