mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Push plot draw list to DrawPlot().
This commit is contained in:
parent
8f5022c3c8
commit
8eb2cc83b3
@ -111,7 +111,7 @@ int64_t TimelineItemPlot::RangeEnd() const
|
|||||||
|
|
||||||
bool TimelineItemPlot::DrawContents( const TimelineContext& ctx, int& offset )
|
bool TimelineItemPlot::DrawContents( const TimelineContext& ctx, int& offset )
|
||||||
{
|
{
|
||||||
return m_view.DrawPlot( ctx, *m_plot, offset );
|
return m_view.DrawPlot( ctx, *m_plot, m_draw, offset );
|
||||||
}
|
}
|
||||||
|
|
||||||
void TimelineItemPlot::DrawFinished()
|
void TimelineItemPlot::DrawFinished()
|
||||||
|
@ -35,7 +35,7 @@ protected:
|
|||||||
private:
|
private:
|
||||||
PlotData* m_plot;
|
PlotData* m_plot;
|
||||||
|
|
||||||
std::vector<PlotDraw> m_draw;
|
std::vector<uint32_t> m_draw;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,8 @@ struct MessagesDraw;
|
|||||||
struct CpuUsageDraw;
|
struct CpuUsageDraw;
|
||||||
struct CpuCtxDraw;
|
struct CpuCtxDraw;
|
||||||
struct LockDraw;
|
struct LockDraw;
|
||||||
|
struct PlotDraw;
|
||||||
|
|
||||||
|
|
||||||
class View
|
class View
|
||||||
{
|
{
|
||||||
@ -137,7 +139,7 @@ public:
|
|||||||
|
|
||||||
void HighlightThread( uint64_t thread );
|
void HighlightThread( uint64_t thread );
|
||||||
void ZoomToRange( int64_t start, int64_t end, bool pause = true );
|
void ZoomToRange( int64_t start, int64_t end, bool pause = true );
|
||||||
bool DrawPlot( const TimelineContext& ctx, PlotData& plot, int& offset );
|
bool DrawPlot( const TimelineContext& ctx, PlotData& plot, const std::vector<uint32_t>& plotDraw, int& offset );
|
||||||
void DrawThread( const TimelineContext& ctx, const ThreadData& thread, const std::vector<TimelineDraw>& draw, const std::vector<ContextSwitchDraw>& ctxDraw, const std::vector<SamplesDraw>& samplesDraw, const std::vector<std::unique_ptr<LockDraw>>& lockDraw, int& offset, int depth, bool hasCtxSwitches, bool hasSamples );
|
void DrawThread( const TimelineContext& ctx, const ThreadData& thread, const std::vector<TimelineDraw>& draw, const std::vector<ContextSwitchDraw>& ctxDraw, const std::vector<SamplesDraw>& samplesDraw, const std::vector<std::unique_ptr<LockDraw>>& lockDraw, int& offset, int depth, bool hasCtxSwitches, bool hasSamples );
|
||||||
void DrawThreadMessagesList( const TimelineContext& ctx, const std::vector<MessagesDraw>& drawList, int offset, uint64_t tid );
|
void DrawThreadMessagesList( const TimelineContext& ctx, const std::vector<MessagesDraw>& drawList, int offset, uint64_t tid );
|
||||||
void DrawThreadOverlays( const ThreadData& thread, const ImVec2& ul, const ImVec2& dr );
|
void DrawThreadOverlays( const ThreadData& thread, const ImVec2& ul, const ImVec2& dr );
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
namespace tracy
|
namespace tracy
|
||||||
{
|
{
|
||||||
|
|
||||||
bool View::DrawPlot( const TimelineContext& ctx, PlotData& plot, int& offset )
|
bool View::DrawPlot( const TimelineContext& ctx, PlotData& plot, const std::vector<uint32_t>& plotDraw, int& offset )
|
||||||
{
|
{
|
||||||
auto& vec = plot.data;
|
auto& vec = plot.data;
|
||||||
vec.ensure_sorted();
|
vec.ensure_sorted();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user