1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Remove VisData.

Its functionality is now incorporated into TimelineItem. For purposes of
maintaining visibility of frame sets and locks a much simpler ptr -> bool map
is now used.
This commit is contained in:
Bartosz Taudul
2022-09-04 14:46:51 +02:00
parent ad2fc03125
commit 44efb15df1
8 changed files with 28 additions and 85 deletions
+1 -1
View File
@@ -362,7 +362,7 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
for( const auto& v : m_worker.GetLockMap() )
{
const auto& lockmap = *v.second;
if( !lockmap.valid || !m_tc.Vis( &lockmap ).visible ) continue;
if( !lockmap.valid || !Vis( &lockmap ) ) continue;
if( m_vd.onlyContendedLocks && ( lockmap.threadList.size() == 1 || !lockmap.isContended ) && m_lockInfoWindow != v.first ) continue;
auto it = lockmap.threadMap.find( tid );