Simplify context switch precalculation.

This commit is contained in:
Bartosz Taudul
2023-03-25 00:18:53 +01:00
parent 734753a941
commit efa095e25f
5 changed files with 68 additions and 98 deletions

View File

@@ -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 )
{