mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Add zone running time UI to flame graph window.
This commit is contained in:
parent
98a064efa9
commit
21721dd814
@ -513,6 +513,7 @@ private:
|
||||
int m_statMode = 0;
|
||||
int m_flameMode = 0;
|
||||
bool m_flameSort = false;
|
||||
bool m_flameRunningTime = false;
|
||||
int m_statSampleLocation = 2;
|
||||
bool m_statHideUnknown = true;
|
||||
bool m_showAllSymbols = false;
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <assert.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "TracyColor.hpp"
|
||||
@ -445,6 +446,19 @@ void View::DrawFlameGraph()
|
||||
|
||||
ImGui::Checkbox( ICON_FA_ARROW_UP_WIDE_SHORT " Sort by time", &m_flameSort );
|
||||
|
||||
if( m_flameMode == 0 )
|
||||
{
|
||||
if( m_worker.HasContextSwitches() )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
ImGui::Checkbox( "Running time", &m_flameRunningTime );
|
||||
}
|
||||
else
|
||||
{
|
||||
assert( !m_flameRunningTime );
|
||||
}
|
||||
}
|
||||
|
||||
auto expand = ImGui::TreeNode( ICON_FA_SHUFFLE " Visible threads:" );
|
||||
ImGui::SameLine();
|
||||
size_t visibleThreads = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user