mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 13:13:53 +00:00
Rename DrawZone* -> DrawTimeline*.
This commit is contained in:
parent
e3b11821c3
commit
9fb618c12d
@ -980,7 +980,7 @@ bool View::DrawImpl()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
DrawZones();
|
DrawTimeline();
|
||||||
|
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
|
@ -187,9 +187,9 @@ private:
|
|||||||
void DrawNotificationArea();
|
void DrawNotificationArea();
|
||||||
bool DrawConnection();
|
bool DrawConnection();
|
||||||
void DrawFrames();
|
void DrawFrames();
|
||||||
void DrawZoneFramesHeader();
|
void DrawTimelineFramesHeader();
|
||||||
void DrawZoneFrames( const FrameData& frames );
|
void DrawTimelineFrames( const FrameData& frames );
|
||||||
void DrawZones();
|
void DrawTimeline();
|
||||||
void DrawContextSwitches( const ContextSwitch* ctx, const Vector<SampleData>& sampleData, bool hover, double pxns, int64_t nspx, const ImVec2& wpos, int offset, int endOffset, bool isFiber );
|
void DrawContextSwitches( const ContextSwitch* ctx, const Vector<SampleData>& sampleData, bool hover, double pxns, int64_t nspx, const ImVec2& wpos, int offset, int endOffset, bool isFiber );
|
||||||
void DrawSamples( const Vector<SampleData>& vec, bool hover, double pxns, int64_t nspx, const ImVec2& wpos, int offset );
|
void DrawSamples( const Vector<SampleData>& vec, bool hover, double pxns, int64_t nspx, const ImVec2& wpos, int offset );
|
||||||
#ifndef TRACY_NO_STATISTICS
|
#ifndef TRACY_NO_STATISTICS
|
||||||
|
@ -22,7 +22,7 @@ static tracy_force_inline uint32_t GetColorMuted( uint32_t color, bool active )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void View::DrawZoneFramesHeader()
|
void View::DrawTimelineFramesHeader()
|
||||||
{
|
{
|
||||||
const auto wpos = ImGui::GetCursorScreenPos();
|
const auto wpos = ImGui::GetCursorScreenPos();
|
||||||
const auto dpos = wpos + ImVec2( 0.5f, 0.5f );
|
const auto dpos = wpos + ImVec2( 0.5f, 0.5f );
|
||||||
@ -88,7 +88,7 @@ void View::DrawZoneFramesHeader()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void View::DrawZoneFrames( const FrameData& frames )
|
void View::DrawTimelineFrames( const FrameData& frames )
|
||||||
{
|
{
|
||||||
const auto wpos = ImGui::GetCursorScreenPos();
|
const auto wpos = ImGui::GetCursorScreenPos();
|
||||||
const auto dpos = wpos + ImVec2( 0.5f, 0.5f );
|
const auto dpos = wpos + ImVec2( 0.5f, 0.5f );
|
||||||
|
@ -12,7 +12,7 @@ enum { MinVisSize = 3 };
|
|||||||
|
|
||||||
extern double s_time;
|
extern double s_time;
|
||||||
|
|
||||||
void View::DrawZones()
|
void View::DrawTimeline()
|
||||||
{
|
{
|
||||||
m_msgHighlight.Decay( nullptr );
|
m_msgHighlight.Decay( nullptr );
|
||||||
m_zoneSrcLocHighlight.Decay( 0 );
|
m_zoneSrcLocHighlight.Decay( 0 );
|
||||||
@ -75,13 +75,13 @@ void View::DrawZones()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DrawZoneFramesHeader();
|
DrawTimelineFramesHeader();
|
||||||
auto& frames = m_worker.GetFrames();
|
auto& frames = m_worker.GetFrames();
|
||||||
for( auto fd : frames )
|
for( auto fd : frames )
|
||||||
{
|
{
|
||||||
if( Vis( fd ).visible )
|
if( Vis( fd ).visible )
|
||||||
{
|
{
|
||||||
DrawZoneFrames( *fd );
|
DrawTimelineFrames( *fd );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user