From c0dd0ef5bcb17fc9b3522a6d8e0f5807c1633325 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 14 Sep 2017 21:05:01 +0200 Subject: [PATCH] Dispatch new zone, update zone events. --- server/TracyView.cpp | 14 +++++++++++--- server/TracyView.hpp | 3 +++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index c4852ae7..1ee9616d 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -162,16 +162,16 @@ void View::ProcessZoneBegin( uint64_t id, const QueueZoneBegin& ev ) if( it == m_pendingEndZone.end() ) { m_data.emplace_back( Event { ev.time, -1 } ); + NewZone( idx ); lock.unlock(); - m_openZones.emplace( id, idx ); } else { assert( ev.time <= it->second.time ); m_data.emplace_back( Event { ev.time, it->second.time } ); + NewZone( idx ); lock.unlock(); - m_pendingEndZone.erase( it ); } } @@ -189,8 +189,8 @@ void View::ProcessZoneEnd( uint64_t id, const QueueZoneEnd& ev ) std::unique_lock lock( m_lock ); assert( ev.time >= m_data[idx].start ); m_data[idx].end = ev.time; + UpdateZone( idx ); lock.unlock(); - m_openZones.erase( it ); } } @@ -214,4 +214,12 @@ void View::AddString( uint64_t ptr, std::string&& str ) m_strings.emplace( ptr, std::move( str ) ); } +void View::NewZone( uint64_t idx ) +{ +} + +void View::UpdateZone( uint64_t idx ) +{ +} + } diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 79998c20..7479a47a 100755 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -40,6 +40,9 @@ private: void CheckString( uint64_t ptr ); void AddString( uint64_t ptr, std::string&& str ); + void NewZone( uint64_t idx ); + void UpdateZone( uint64_t idx ); + std::string m_addr; Socket m_sock;