Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-10-18 22:44:08 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-10-18 22:44:08 +0300
commitd90fed8296f2dc0f7e7a568c791105bb1fced505 (patch)
treee02765b98d862e0045150f4a2cdb641e4b4e591d /server
parentf6cfbe935dc8f690c2390656ee76b26eefa94c94 (diff)
Implement resetting selected microarchitecture.
Diffstat (limited to 'server')
-rw-r--r--server/TracySourceView.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp
index 05558da4..056ee1bf 100644
--- a/server/TracySourceView.cpp
+++ b/server/TracySourceView.cpp
@@ -2374,11 +2374,13 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker
TextColoredUnformatted( ImVec4( 1.f, 0.3f, 0.3f, 1.f ), ICON_FA_MICROCHIP );
if( ImGui::IsItemHovered() )
{
+ const bool clicked = ImGui::IsItemClicked();
ImGui::BeginTooltip();
ImGui::TextUnformatted( "Selected microarchitecture does not match the one profiled application was running on" );
if( m_profileMicroArch >= 0 )
{
ImGui::Text( "Measurements were performed on the %s microarchitecture", s_uArchUx[m_profileMicroArch].uArch );
+ if( clicked ) SelectMicroArchitecture( s_uArchUx[m_profileMicroArch].moniker );
}
else
{