mirror of
https://github.com/wolfpld/tracy
synced 2025-05-02 21:53:52 +00:00
Allow requesting reconnect on trace discard.
This commit is contained in:
parent
d25614d50f
commit
9668234903
@ -1095,8 +1095,16 @@ bool View::DrawConnection()
|
|||||||
ImGui::EndPopup();
|
ImGui::EndPopup();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
ImGui::SameLine();
|
||||||
|
if( ImGui::Button( "Reconnect" ) )
|
||||||
|
{
|
||||||
|
ImGui::CloseCurrentPopup();
|
||||||
|
ImGui::EndPopup();
|
||||||
|
m_reconnectRequested = true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
ImGui::SameLine( 0, ty * 2 );
|
ImGui::SameLine( 0, ty * 2 );
|
||||||
if( ImGui::Button( "No", ImVec2( ty * 8, 0 ) ) )
|
if( ImGui::Button( "No", ImVec2( ty * 6, 0 ) ) )
|
||||||
{
|
{
|
||||||
ImGui::CloseCurrentPopup();
|
ImGui::CloseCurrentPopup();
|
||||||
}
|
}
|
||||||
|
@ -81,6 +81,7 @@ public:
|
|||||||
void NotifyRootWindowSize( float w, float h ) { m_rootWidth = w; m_rootHeight = h; }
|
void NotifyRootWindowSize( float w, float h ) { m_rootWidth = w; m_rootHeight = h; }
|
||||||
void SetTextEditorFile( const char* fileName, int line );
|
void SetTextEditorFile( const char* fileName, int line );
|
||||||
|
|
||||||
|
bool ReconnectRequested() const { return m_reconnectRequested; }
|
||||||
std::string GetAddress() const { return m_worker.GetAddr(); }
|
std::string GetAddress() const { return m_worker.GetAddr(); }
|
||||||
int GetPort() const { return m_worker.GetPort(); }
|
int GetPort() const { return m_worker.GetPort(); }
|
||||||
|
|
||||||
@ -411,6 +412,8 @@ private:
|
|||||||
std::vector<std::unique_ptr<Annotation>> m_annotations;
|
std::vector<std::unique_ptr<Annotation>> m_annotations;
|
||||||
UserData m_userData;
|
UserData m_userData;
|
||||||
|
|
||||||
|
bool m_reconnectRequested = false;
|
||||||
|
|
||||||
struct FindZone {
|
struct FindZone {
|
||||||
enum : uint64_t { Unselected = std::numeric_limits<uint64_t>::max() - 1 };
|
enum : uint64_t { Unselected = std::numeric_limits<uint64_t>::max() - 1 };
|
||||||
enum class GroupBy : int { Thread, UserText, Callstack, Parent, NoGrouping };
|
enum class GroupBy : int { Thread, UserText, Callstack, Parent, NoGrouping };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user