mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Send program start time, not connection time.
This commit is contained in:
parent
2f14704143
commit
3f0bd793fd
@ -61,6 +61,7 @@ static Profiler* s_instance = nullptr;
|
||||
|
||||
Profiler::Profiler()
|
||||
: m_mainThread( GetThreadHandle() )
|
||||
, m_epoch( std::chrono::duration_cast<std::chrono::seconds>( std::chrono::system_clock::now().time_since_epoch() ).count() )
|
||||
, m_shutdown( false )
|
||||
, m_stream( LZ4_createStream() )
|
||||
, m_buffer( new char[TargetFrameSize*3] )
|
||||
@ -128,7 +129,7 @@ void Profiler::Worker()
|
||||
welcome.timeBegin = m_timeBegin;
|
||||
welcome.delay = m_delay;
|
||||
welcome.resolution = m_resolution;
|
||||
welcome.epoch = std::chrono::duration_cast<std::chrono::seconds>( std::chrono::system_clock::now().time_since_epoch() ).count();
|
||||
welcome.epoch = m_epoch;
|
||||
memcpy( welcome.programName, procname, pnsz );
|
||||
memset( welcome.programName + pnsz, 0, WelcomeMessageProgramNameSize - pnsz );
|
||||
|
||||
|
@ -100,6 +100,7 @@ private:
|
||||
uint64_t m_delay;
|
||||
int64_t m_timeBegin;
|
||||
uint64_t m_mainThread;
|
||||
uint64_t m_epoch;
|
||||
std::thread m_thread;
|
||||
std::atomic<bool> m_shutdown;
|
||||
std::unique_ptr<Socket> m_sock;
|
||||
|
Loading…
Reference in New Issue
Block a user