mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 06:34:36 +00:00
Don't try to create FrameData in ProcessFrameMarkEnd().
This commit is contained in:
parent
216a4b7663
commit
afe5c8dfbe
@ -5055,15 +5055,18 @@ void Worker::ProcessFrameMarkStart( const QueueFrameMark& ev )
|
||||
|
||||
void Worker::ProcessFrameMarkEnd( const QueueFrameMark& ev )
|
||||
{
|
||||
auto fd = m_data.frames.Retrieve( ev.name, [this] ( uint64_t name ) {
|
||||
auto fd = m_slab.AllocInit<FrameData>();
|
||||
fd->name = name;
|
||||
fd->continuous = 0;
|
||||
return fd;
|
||||
auto fd = m_data.frames.Retrieve( ev.name, [this] ( uint64_t name ) -> FrameData* {
|
||||
return nullptr;
|
||||
}, [this] ( uint64_t name ) {
|
||||
Query( ServerQueryFrameName, name );
|
||||
} );
|
||||
|
||||
if( !fd )
|
||||
{
|
||||
if( !m_ignoreFrameEndFaults ) FrameEndFailure();
|
||||
return;
|
||||
}
|
||||
|
||||
assert( fd->continuous == 0 );
|
||||
if( fd->frames.empty() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user