mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-26 13:08:24 +00:00
Only display wait reason or state if present.
This commit is contained in:
@@ -219,12 +219,18 @@ void View::DrawCallstackTable( const CallstackFrameId* data, size_t size, uint64
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
TextFocused( "Time:", TimeToString( wait.time ) );
|
||||
TextFocused( "Reason:", wait.reasonCode );
|
||||
ImGui::SameLine();
|
||||
TextDisabledUnformatted( wait.reason );
|
||||
TextFocused( "State:", wait.stateCode );
|
||||
ImGui::SameLine();
|
||||
TextDisabledUnformatted( wait.state );
|
||||
if( wait.reasonCode )
|
||||
{
|
||||
TextFocused( "Reason:", wait.reasonCode );
|
||||
ImGui::SameLine();
|
||||
TextDisabledUnformatted( wait.reason );
|
||||
}
|
||||
if( wait.stateCode )
|
||||
{
|
||||
TextFocused( "State:", wait.stateCode );
|
||||
ImGui::SameLine();
|
||||
TextDisabledUnformatted( wait.state );
|
||||
}
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user