1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Update TracyWorker.cpp

This commit is contained in:
Bartosz Taudul 2023-11-19 18:55:40 +01:00 committed by GitHub
parent 92ea670205
commit e67dcaade5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5077,13 +5077,12 @@ void Worker::ProcessFrameMarkEnd( const QueueFrameMark& ev )
} );
assert( fd->continuous == 0 );
const auto time = TscTime( ev.time );
if( fd->frames.empty() )
{
if ( !m_ignoreFrameEndFaults )
FrameEndFailure();
if( !m_ignoreFrameEndFaults ) FrameEndFailure();
return;
}
const auto time = TscTime( ev.time );
assert( fd->frames.back().end == -1 );
fd->frames.back().end = time;
if( m_data.lastTime < time ) m_data.lastTime = time;