mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Store profiling start time.
This commit is contained in:
parent
5964a6864c
commit
6a7fdea6fd
@ -19,7 +19,8 @@ static inline int64_t GetTime()
|
|||||||
static Profiler* s_instance = nullptr;
|
static Profiler* s_instance = nullptr;
|
||||||
|
|
||||||
Profiler::Profiler()
|
Profiler::Profiler()
|
||||||
: m_shutdown( false )
|
: m_timeBegin( GetTime() )
|
||||||
|
, m_shutdown( false )
|
||||||
, m_id( 0 )
|
, m_id( 0 )
|
||||||
{
|
{
|
||||||
assert( PointerCheckA == PointerCheckB );
|
assert( PointerCheckA == PointerCheckB );
|
||||||
|
@ -25,6 +25,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
void Worker();
|
void Worker();
|
||||||
|
|
||||||
|
int64_t m_timeBegin;
|
||||||
std::thread m_thread;
|
std::thread m_thread;
|
||||||
std::atomic<bool> m_shutdown;
|
std::atomic<bool> m_shutdown;
|
||||||
moodycamel::ConcurrentQueue<QueueItem> m_queue;
|
moodycamel::ConcurrentQueue<QueueItem> m_queue;
|
||||||
|
Loading…
Reference in New Issue
Block a user