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

Track server memory usage.

This commit is contained in:
Bartosz Taudul
2017-09-17 01:22:46 +02:00
parent ab033188d8
commit 447f042c9a
5 changed files with 37 additions and 1 deletions
+2
View File
@@ -309,6 +309,8 @@ void View::DrawImpl()
ImGui::PlotLines( buf, m_mbps.data(), m_mbps.size(), 0, nullptr, 0 );
}
ImGui::Text( "Memory usage: %.2f MB", memUsage.load( std::memory_order_relaxed ) / ( 1024.f * 1024.f ) );
std::lock_guard<std::mutex> lock( m_lock );
{
const auto sz = m_frames.size();