mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Focusing timeline on crash from trace info window.
This commit is contained in:
parent
7792963e31
commit
df3e8597c4
@ -8551,8 +8551,17 @@ void View::DrawInfo()
|
|||||||
TextDisabledUnformatted( "Reason:" );
|
TextDisabledUnformatted( "Reason:" );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextWrapped( "%s", m_worker.GetString( crash.message ) );
|
ImGui::TextWrapped( "%s", m_worker.GetString( crash.message ) );
|
||||||
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
|
if( ImGui::Button( ICON_FA_MICROSCOPE " Focus" ) )
|
||||||
|
#else
|
||||||
|
if( ImGui::Button( "Focus" ) )
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
CenterAtTime( crash.time );
|
||||||
|
}
|
||||||
if( crash.callstack != 0 )
|
if( crash.callstack != 0 )
|
||||||
{
|
{
|
||||||
|
ImGui::SameLine();
|
||||||
bool hilite = m_callstackInfoWindow == crash.callstack;
|
bool hilite = m_callstackInfoWindow == crash.callstack;
|
||||||
if( hilite )
|
if( hilite )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user