mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Don't display locks with no lock events.
This commit is contained in:
parent
062058315e
commit
9dd1d6a744
@ -4934,7 +4934,7 @@ void View::DrawOptions()
|
||||
|
||||
for( const auto& l : m_worker.GetLockMap() )
|
||||
{
|
||||
if( l.second.valid && l.second.threadList.size() != 1 )
|
||||
if( l.second.valid && !l.second.timeline.empty() && l.second.threadList.size() != 1 )
|
||||
{
|
||||
auto& sl = m_worker.GetSourceLocation( l.second.srcloc );
|
||||
auto fileName = m_worker.GetString( sl.file );
|
||||
@ -4997,7 +4997,7 @@ void View::DrawOptions()
|
||||
|
||||
for( const auto& l : m_worker.GetLockMap() )
|
||||
{
|
||||
if( l.second.valid && l.second.threadList.size() == 1 )
|
||||
if( l.second.valid && !l.second.timeline.empty() && l.second.threadList.size() == 1 )
|
||||
{
|
||||
auto& sl = m_worker.GetSourceLocation( l.second.srcloc );
|
||||
auto fileName = m_worker.GetString( sl.file );
|
||||
|
Loading…
Reference in New Issue
Block a user