From c92974d920bb1e6aa77169476ca66368fe3c7347 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 31 Jan 2021 17:45:11 +0100 Subject: [PATCH] Send executable mtime in welcome message. --- client/TracyProfiler.cpp | 1 + common/TracyProtocol.hpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 96a9f348..5435f583 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -1332,6 +1332,7 @@ void Profiler::Worker() MemWrite( &welcome.delay, m_delay ); MemWrite( &welcome.resolution, m_resolution ); MemWrite( &welcome.epoch, m_epoch ); + MemWrite( &welcome.exectime, m_exectime ); MemWrite( &welcome.pid, pid ); MemWrite( &welcome.samplingPeriod, m_samplingPeriod ); MemWrite( &welcome.onDemand, onDemand ); diff --git a/common/TracyProtocol.hpp b/common/TracyProtocol.hpp index f267edca..f36aeeed 100644 --- a/common/TracyProtocol.hpp +++ b/common/TracyProtocol.hpp @@ -9,7 +9,7 @@ namespace tracy constexpr unsigned Lz4CompressBound( unsigned isize ) { return isize + ( isize / 255 ) + 16; } -enum : uint32_t { ProtocolVersion = 44 }; +enum : uint32_t { ProtocolVersion = 45 }; enum : uint16_t { BroadcastVersion = 2 }; using lz4sz_t = uint32_t; @@ -82,6 +82,7 @@ struct WelcomeMessage uint64_t delay; uint64_t resolution; uint64_t epoch; + uint64_t exectime; uint64_t pid; int64_t samplingPeriod; uint8_t onDemand;