mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Make display of zone time in frames toggleable.
And disable it by default, as it can be heavy on resources.
This commit is contained in:
parent
fa53c2e683
commit
fd7ad586af
@ -1303,7 +1303,7 @@ void View::DrawFrames()
|
||||
|
||||
int i = 0, idx = 0;
|
||||
#ifndef TRACY_NO_STATISTICS
|
||||
if( m_worker.AreSourceLocationZonesReady() && m_findZone.show && !m_findZone.match.empty() )
|
||||
if( m_worker.AreSourceLocationZonesReady() && m_findZone.show && m_findZone.showZoneInFrames && !m_findZone.match.empty() )
|
||||
{
|
||||
auto& zoneData = m_worker.GetZonesForSourceLocation( m_findZone.match[m_findZone.selMatch] );
|
||||
auto begin = zoneData.zones.begin();
|
||||
@ -8755,6 +8755,8 @@ void View::DrawFindZone()
|
||||
ImGui::TreePop();
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
SmallCheckbox( "Show zone time in frames", &m_findZone.showZoneInFrames );
|
||||
ImGui::Separator();
|
||||
ImGui::TextUnformatted( "Found zones:" );
|
||||
ImGui::SameLine();
|
||||
|
@ -438,6 +438,7 @@ private:
|
||||
int selCs = 0;
|
||||
int minBinVal = 1;
|
||||
int64_t tmin, tmax;
|
||||
bool showZoneInFrames = false;
|
||||
|
||||
struct
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user