1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Don't care about memory usage tracking data races.

This commit is contained in:
Bartosz Taudul
2019-11-10 19:20:57 +01:00
parent 9504d6c68f
commit fa53c2e683
6 changed files with 17 additions and 18 deletions
+2 -2
View File
@@ -953,7 +953,7 @@ bool View::DrawConnection()
TextFocused( "Query backlog:", RealToString( m_worker.GetSendQueueSize(), true ) );
}
TextFocused( "Memory usage:", MemSizeToString( memUsage.load( std::memory_order_relaxed ) ) );
TextFocused( "Memory usage:", MemSizeToString( memUsage ) );
const auto wpos = ImGui::GetWindowPos() + ImGui::GetWindowContentRegionMin();
ImGui::GetWindowDrawList()->AddCircleFilled( wpos + ImVec2( 1 + cs * 0.5, 3 + ty * 1.75 ), cs * 0.5, m_worker.IsConnected() ? 0xFF2222CC : 0xFF444444, 10 );
@@ -10761,7 +10761,7 @@ void View::DrawInfo()
if( ImGui::TreeNode( "Profiler statistics" ) )
{
TextFocused( "Profiler memory usage:", MemSizeToString( memUsage.load( std::memory_order_relaxed ) ) );
TextFocused( "Profiler memory usage:", MemSizeToString( memUsage ) );
TextFocused( "Profiler FPS:", RealToString( int( io.Framerate ), true ) );
ImGui::TreePop();
}