mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Better "no memory data" view in memory window.
This commit is contained in:
parent
219da446f4
commit
796f09ef23
@ -199,7 +199,12 @@ void View::DrawMemory()
|
|||||||
auto& mem = m_worker.GetMemoryNamed( m_memInfo.pool );
|
auto& mem = m_worker.GetMemoryNamed( m_memInfo.pool );
|
||||||
if( mem.data.empty() )
|
if( mem.data.empty() )
|
||||||
{
|
{
|
||||||
ImGui::TextWrapped( "No memory data collected." );
|
const auto ty = ImGui::GetTextLineHeight();
|
||||||
|
ImGui::PushFont( m_bigFont );
|
||||||
|
ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 ) * 0.5f ) );
|
||||||
|
TextCentered( ICON_FA_DOG );
|
||||||
|
TextCentered( "No memory data collected" );
|
||||||
|
ImGui::PopFont();
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user