diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 045f59e6..1e0a6883 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -7782,8 +7782,10 @@ void Worker::UpdateSampleStatisticsImpl( const CallstackFrameData** frames, uint } } + const bool topFrameHasInlines = fxsz != 1; + CallstackFrameId parentFrameId; - if( fxsz != 1 ) + if( topFrameHasInlines ) { auto cfdata = (CallstackFrame*)alloca( uint8_t( fxsz-1 ) * sizeof( CallstackFrame ) ); for( int i=0; i ) + sz * sizeof( CallstackFrameId ); auto mem = (char*)m_slab.AllocRaw( memsize ); auto data = (CallstackFrameId*)mem; auto dst = data; - if( fxsz == 1 ) + if( !topFrameHasInlines ) { for( int i=0; i