mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 13:13:53 +00:00
Display notification when queries are backlogged.
This commit is contained in:
parent
582e46005e
commit
cda285ceb7
@ -742,6 +742,22 @@ void View::DrawNotificationArea()
|
||||
{
|
||||
auto& io = ImGui::GetIO();
|
||||
const auto ty = ImGui::GetFontSize();
|
||||
const auto sqs = m_worker.GetSendQueueSize();
|
||||
if( sqs != 0 )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
#ifdef TRACY_EXTENDED_FONT
|
||||
TextColoredUnformatted( ImVec4( 1, 0, 0, 1 ), ICON_FA_TACHOMETER_ALT );
|
||||
#else
|
||||
TextColoredUnformatted( ImVec4( 1, 0, 0, 1 ), "slow" );
|
||||
#endif
|
||||
if( ImGui::IsItemHovered() )
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
TextFocused( "Query backlog:", RealToString( sqs ) );
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
}
|
||||
auto& crash = m_worker.GetCrashEvent();
|
||||
if( crash.thread != 0 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user