mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-13 03:41:48 +00:00
Add "self time" checkbox to find zone menu.
This commit is contained in:
parent
42af2d14cc
commit
92766430d9
@ -4819,6 +4819,11 @@ void View::DrawFindZone()
|
|||||||
m_findZone.ResetMatch();
|
m_findZone.ResetMatch();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if( m_findZone.scheduleResetMatch )
|
||||||
|
{
|
||||||
|
m_findZone.scheduleResetMatch = false;
|
||||||
|
m_findZone.ResetMatch();
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
@ -4907,6 +4912,11 @@ void View::DrawFindZone()
|
|||||||
ImGui::Text( "Show total time taken by calls in each bin instead of call counts." );
|
ImGui::Text( "Show total time taken by calls in each bin instead of call counts." );
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
}
|
}
|
||||||
|
ImGui::SameLine();
|
||||||
|
if( ImGui::Checkbox( "Self time", &m_findZone.selfTime ) )
|
||||||
|
{
|
||||||
|
m_findZone.scheduleResetMatch = true;
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::TextDisabled( "Time range:" );
|
ImGui::TextDisabled( "Time range:" );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
@ -309,6 +309,7 @@ private:
|
|||||||
bool logVal = false;
|
bool logVal = false;
|
||||||
bool logTime = true;
|
bool logTime = true;
|
||||||
bool cumulateTime = false;
|
bool cumulateTime = false;
|
||||||
|
bool selfTime = false;
|
||||||
GroupBy groupBy = GroupBy::Thread;
|
GroupBy groupBy = GroupBy::Thread;
|
||||||
SortBy sortBy = SortBy::Count;
|
SortBy sortBy = SortBy::Count;
|
||||||
Region highlight;
|
Region highlight;
|
||||||
@ -322,6 +323,7 @@ private:
|
|||||||
int64_t total, selTotal;
|
int64_t total, selTotal;
|
||||||
bool drawAvgMed = true;
|
bool drawAvgMed = true;
|
||||||
bool drawSelAvgMed = true;
|
bool drawSelAvgMed = true;
|
||||||
|
bool scheduleResetMatch = false;
|
||||||
|
|
||||||
void Reset()
|
void Reset()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user