mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Implement resetting selected microarchitecture.
This commit is contained in:
parent
f6cfbe935d
commit
d90fed8296
@ -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 );
|
TextColoredUnformatted( ImVec4( 1.f, 0.3f, 0.3f, 1.f ), ICON_FA_MICROCHIP );
|
||||||
if( ImGui::IsItemHovered() )
|
if( ImGui::IsItemHovered() )
|
||||||
{
|
{
|
||||||
|
const bool clicked = ImGui::IsItemClicked();
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
ImGui::TextUnformatted( "Selected microarchitecture does not match the one profiled application was running on" );
|
ImGui::TextUnformatted( "Selected microarchitecture does not match the one profiled application was running on" );
|
||||||
if( m_profileMicroArch >= 0 )
|
if( m_profileMicroArch >= 0 )
|
||||||
{
|
{
|
||||||
ImGui::Text( "Measurements were performed on the %s microarchitecture", s_uArchUx[m_profileMicroArch].uArch );
|
ImGui::Text( "Measurements were performed on the %s microarchitecture", s_uArchUx[m_profileMicroArch].uArch );
|
||||||
|
if( clicked ) SelectMicroArchitecture( s_uArchUx[m_profileMicroArch].moniker );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user