Hiding the "Incomplete context switch data" warning on fibers.

This commit is contained in:
Ben Vanik 2022-06-14 08:01:19 -07:00
parent 8f99232e1e
commit aa154792c7

View File

@ -7471,7 +7471,7 @@ void View::DrawZoneInfoWindow()
{ {
const auto end = m_worker.GetZoneEnd( ev ); const auto end = m_worker.GetZoneEnd( ev );
auto eit = std::upper_bound( it, ctx->v.end(), end, [] ( const auto& l, const auto& r ) { return l < r.Start(); } ); auto eit = std::upper_bound( it, ctx->v.end(), end, [] ( const auto& l, const auto& r ) { return l < r.Start(); } );
bool incomplete = eit == ctx->v.end(); bool incomplete = eit == ctx->v.end() && !m_worker.IsThreadFiber( tid );
uint64_t cnt = std::distance( it, eit ); uint64_t cnt = std::distance( it, eit );
if( cnt == 1 ) if( cnt == 1 )
{ {