mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Handle fiber enter -> enter case (without leave in between).
This commit is contained in:
parent
d33de972f0
commit
f925da5e01
@ -6815,6 +6815,15 @@ void Worker::ProcessFiberEnter( const QueueFiberEnter& ev )
|
||||
}
|
||||
|
||||
auto td = NoticeThread( ev.thread );
|
||||
if( td->fiber )
|
||||
{
|
||||
auto cit = m_data.ctxSwitch.find( td->fiber->id );
|
||||
assert( cit != m_data.ctxSwitch.end() );
|
||||
auto& data = cit->second->v;
|
||||
assert( !data.empty() );
|
||||
auto& item = data.back();
|
||||
item.SetEnd( t );
|
||||
}
|
||||
td->fiber = RetrieveThread( tid );
|
||||
assert( td->fiber );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user