mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-31 07:28:32 +00:00
Simplify context switch precalculation.
This commit is contained in:
@@ -69,7 +69,9 @@ void View::DrawThread( const TimelineContext& ctx, const ThreadData& thread, con
|
||||
|
||||
if( hasCtxSwitch )
|
||||
{
|
||||
DrawContextSwitchList( ctx, ctxDraw, ctxOffset, offset, thread.isFiber );
|
||||
auto ctxSwitch = m_worker.GetContextSwitchData( thread.id );
|
||||
assert( ctxSwitch );
|
||||
DrawContextSwitchList( ctx, ctxDraw, ctxSwitch->v, ctxOffset, offset, thread.isFiber );
|
||||
}
|
||||
if( hasSamples )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user