mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Dispatch new zone, update zone events.
This commit is contained in:
+11
-3
@@ -162,16 +162,16 @@ void View::ProcessZoneBegin( uint64_t id, const QueueZoneBegin& ev )
|
||||
if( it == m_pendingEndZone.end() )
|
||||
{
|
||||
m_data.emplace_back( Event { ev.time, -1 } );
|
||||
NewZone( idx );
|
||||
lock.unlock();
|
||||
|
||||
m_openZones.emplace( id, idx );
|
||||
}
|
||||
else
|
||||
{
|
||||
assert( ev.time <= it->second.time );
|
||||
m_data.emplace_back( Event { ev.time, it->second.time } );
|
||||
NewZone( idx );
|
||||
lock.unlock();
|
||||
|
||||
m_pendingEndZone.erase( it );
|
||||
}
|
||||
}
|
||||
@@ -189,8 +189,8 @@ void View::ProcessZoneEnd( uint64_t id, const QueueZoneEnd& ev )
|
||||
std::unique_lock<std::mutex> lock( m_lock );
|
||||
assert( ev.time >= m_data[idx].start );
|
||||
m_data[idx].end = ev.time;
|
||||
UpdateZone( idx );
|
||||
lock.unlock();
|
||||
|
||||
m_openZones.erase( it );
|
||||
}
|
||||
}
|
||||
@@ -214,4 +214,12 @@ void View::AddString( uint64_t ptr, std::string&& str )
|
||||
m_strings.emplace( ptr, std::move( str ) );
|
||||
}
|
||||
|
||||
void View::NewZone( uint64_t idx )
|
||||
{
|
||||
}
|
||||
|
||||
void View::UpdateZone( uint64_t idx )
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user