mirror of
https://github.com/wolfpld/tracy
synced 2026-02-16 01:52:13 +00:00
Allow displaying global statistics of a zone.
This commit is contained in:
@@ -2411,6 +2411,8 @@ void View::DrawZoneInfoWindow()
|
||||
auto& ev = *m_zoneInfoWindow;
|
||||
int dmul = 1;
|
||||
|
||||
const auto& srcloc = m_worker.GetSourceLocation( ev.srcloc );
|
||||
|
||||
bool show = true;
|
||||
ImGui::Begin( "Zone info", &show );
|
||||
|
||||
@@ -2427,11 +2429,15 @@ void View::DrawZoneInfoWindow()
|
||||
m_zoneInfoWindow = parent;
|
||||
}
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if( ImGui::Button( "Statistics" ) )
|
||||
{
|
||||
m_findZone.ShowZone( ev.srcloc, m_worker.GetString( srcloc.name.active ? srcloc.name : srcloc.function ) );
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
const auto tid = GetZoneThread( ev );
|
||||
const auto& srcloc = m_worker.GetSourceLocation( ev.srcloc );
|
||||
if( srcloc.name.active )
|
||||
{
|
||||
ImGui::Text( "Zone name: %s", m_worker.GetString( srcloc.name ) );
|
||||
|
||||
Reference in New Issue
Block a user