mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Report whether string is available, or if a query was dispatched.
This commit is contained in:
parent
1151ec1328
commit
670a292416
@ -3559,15 +3559,16 @@ void Worker::InsertLockEvent( LockMap& lockmap, LockEvent* lev, uint64_t thread,
|
|||||||
if( range.end < time ) range.end = time;
|
if( range.end < time ) range.end = time;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Worker::CheckString( uint64_t ptr )
|
bool Worker::CheckString( uint64_t ptr )
|
||||||
{
|
{
|
||||||
if( ptr == 0 ) return;
|
if( ptr == 0 ) return true;
|
||||||
if( m_data.strings.find( ptr ) != m_data.strings.end() ) return;
|
if( m_data.strings.find( ptr ) != m_data.strings.end() ) return true;
|
||||||
|
|
||||||
m_data.strings.emplace( ptr, "???" );
|
m_data.strings.emplace( ptr, "???" );
|
||||||
m_pendingStrings++;
|
m_pendingStrings++;
|
||||||
|
|
||||||
Query( ServerQueryString, ptr );
|
Query( ServerQueryString, ptr );
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Worker::CheckThreadString( uint64_t id )
|
void Worker::CheckThreadString( uint64_t id )
|
||||||
|
@ -680,7 +680,7 @@ private:
|
|||||||
|
|
||||||
void InsertLockEvent( LockMap& lockmap, LockEvent* lev, uint64_t thread, int64_t time );
|
void InsertLockEvent( LockMap& lockmap, LockEvent* lev, uint64_t thread, int64_t time );
|
||||||
|
|
||||||
void CheckString( uint64_t ptr );
|
bool CheckString( uint64_t ptr );
|
||||||
void CheckThreadString( uint64_t id );
|
void CheckThreadString( uint64_t id );
|
||||||
void CheckExternalName( uint64_t id );
|
void CheckExternalName( uint64_t id );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user