mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-14 12:04:35 +00:00
Allow displaying global statistics of a zone.
This commit is contained in:
parent
093787b3e8
commit
d4bfbc2797
@ -2411,6 +2411,8 @@ void View::DrawZoneInfoWindow()
|
|||||||
auto& ev = *m_zoneInfoWindow;
|
auto& ev = *m_zoneInfoWindow;
|
||||||
int dmul = 1;
|
int dmul = 1;
|
||||||
|
|
||||||
|
const auto& srcloc = m_worker.GetSourceLocation( ev.srcloc );
|
||||||
|
|
||||||
bool show = true;
|
bool show = true;
|
||||||
ImGui::Begin( "Zone info", &show );
|
ImGui::Begin( "Zone info", &show );
|
||||||
|
|
||||||
@ -2427,11 +2429,15 @@ void View::DrawZoneInfoWindow()
|
|||||||
m_zoneInfoWindow = parent;
|
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();
|
ImGui::Separator();
|
||||||
|
|
||||||
const auto tid = GetZoneThread( ev );
|
const auto tid = GetZoneThread( ev );
|
||||||
const auto& srcloc = m_worker.GetSourceLocation( ev.srcloc );
|
|
||||||
if( srcloc.name.active )
|
if( srcloc.name.active )
|
||||||
{
|
{
|
||||||
ImGui::Text( "Zone name: %s", m_worker.GetString( srcloc.name ) );
|
ImGui::Text( "Zone name: %s", m_worker.GetString( srcloc.name ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user