mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Add attention callback helper.
This commit is contained in:
parent
0a7ae94fcb
commit
94fd3b664e
@ -349,6 +349,8 @@ private:
|
||||
void SetPlaybackFrame( uint32_t idx );
|
||||
bool Save( const char* fn, FileWrite::Compression comp, int zlevel, bool buildDict );
|
||||
|
||||
void Attention( bool& alreadyDone );
|
||||
|
||||
unordered_flat_map<uint64_t, bool> m_visibleMsgThread;
|
||||
unordered_flat_map<uint64_t, bool> m_waitStackThread;
|
||||
unordered_flat_map<const void*, int> m_gpuDrift;
|
||||
|
@ -864,4 +864,13 @@ const char* View::GetThreadContextData( uint64_t thread, bool& _local, bool& _un
|
||||
return label;
|
||||
}
|
||||
|
||||
void View::Attention( bool& alreadyDone )
|
||||
{
|
||||
if( !alreadyDone )
|
||||
{
|
||||
alreadyDone = true;
|
||||
m_acb();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user