mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Show whether server is recording data.
This commit is contained in:
parent
76aad0d2a4
commit
11e9327e02
@ -320,11 +320,16 @@ void View::DrawImpl()
|
||||
{
|
||||
sprintf( buf, "%6.2f Mbps", mbps );
|
||||
}
|
||||
ImGui::PlotLines( buf, m_mbps.data(), m_mbps.size(), 0, nullptr, 0, std::numeric_limits<float>::max(), ImVec2( 160, 0 ) );
|
||||
ImGui::Dummy( ImVec2( 10, 0 ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::PlotLines( buf, m_mbps.data(), m_mbps.size(), 0, nullptr, 0, std::numeric_limits<float>::max(), ImVec2( 150, 0 ) );
|
||||
}
|
||||
|
||||
ImGui::Text( "Memory usage: %.2f MB", memUsage.load( std::memory_order_relaxed ) / ( 1024.f * 1024.f ) );
|
||||
|
||||
const auto wpos = ImGui::GetWindowPos() + ImGui::GetWindowContentRegionMin();
|
||||
ImGui::GetWindowDrawList()->AddCircleFilled( wpos + ImVec2( 6, 9 ), 5.f, m_connected.load( std::memory_order_relaxed ) ? 0xFF2222CC : 0xFF444444, 10 );
|
||||
|
||||
std::lock_guard<std::mutex> lock( m_lock );
|
||||
{
|
||||
const auto sz = m_frames.size();
|
||||
|
Loading…
Reference in New Issue
Block a user