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;