diff --git a/server/TracyVector.hpp b/server/TracyVector.hpp index 13011319..2908992b 100644 --- a/server/TracyVector.hpp +++ b/server/TracyVector.hpp @@ -87,6 +87,11 @@ public: m_ptr[m_size++] = v; } + void push_back_no_space_check( const T& v ) + { + m_ptr[m_size++] = v; + } + void push_back( T&& v ) { if( m_size == Capacity() ) AllocMore(); diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index f2b88594..f1ca892c 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -1566,7 +1566,7 @@ void Worker::ReadTimeline( FileRead& f, Vector& vec ) for( uint64_t i=0; i(); - vec.push_back( zone ); + vec.push_back_no_space_check( zone ); f.Read( &zone->start, sizeof( zone->start ) ); f.Read( &zone->end, sizeof( zone->end ) ); @@ -1587,8 +1587,7 @@ void Worker::ReadTimeline( FileRead& f, Vector& vec ) for( uint64_t i=0; i(); - - vec.push_back( zone ); + vec.push_back_no_space_check( zone ); f.Read( &zone->cpuStart, sizeof( zone->cpuStart ) ); f.Read( &zone->cpuEnd, sizeof( zone->cpuEnd ) );