mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Add "minimum values in bin" parameter to histogram.
This commit is contained in:
parent
4186a71ee7
commit
8009c6412e
@ -6231,9 +6231,11 @@ void View::DrawFindZone()
|
|||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextDisabled( "(%.2f%%)", 100.f * zoneData.selfTotal / zoneData.total );
|
ImGui::TextDisabled( "(%.2f%%)", 100.f * zoneData.selfTotal / zoneData.total );
|
||||||
|
|
||||||
TextDisabledUnformatted( "Time range:" );
|
TextDisabledUnformatted( "Minimum values in bin:" );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Text( "%s - %s (%s)", TimeToString( tmin ), TimeToString( tmax ), TimeToString( tmax - tmin ) );
|
ImGui::SetNextItemWidth( ImGui::CalcTextSize( "123456890123456" ).x );
|
||||||
|
ImGui::InputInt( "##minBinVal", &m_findZone.minBinVal );
|
||||||
|
if( m_findZone.minBinVal < 1 ) m_findZone.minBinVal = 1;
|
||||||
|
|
||||||
const auto dt = double( tmax - tmin );
|
const auto dt = double( tmax - tmin );
|
||||||
const auto cumulateTime = m_findZone.cumulateTime;
|
const auto cumulateTime = m_findZone.cumulateTime;
|
||||||
@ -6381,6 +6383,9 @@ void View::DrawFindZone()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TextDisabledUnformatted( "Time range:" );
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::Text( "%s - %s (%s)", TimeToString( tmin ), TimeToString( tmax ), TimeToString( tmax - tmin ) );
|
||||||
TextFocused( "Total time:", TimeToString( timeTotal ) );
|
TextFocused( "Total time:", TimeToString( timeTotal ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
|
@ -374,6 +374,7 @@ private:
|
|||||||
bool drawSelAvgMed = true;
|
bool drawSelAvgMed = true;
|
||||||
bool scheduleResetMatch = false;
|
bool scheduleResetMatch = false;
|
||||||
int selCs = 0;
|
int selCs = 0;
|
||||||
|
int minBinVal = 1;
|
||||||
|
|
||||||
void Reset()
|
void Reset()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user