diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-09-03 17:54:46 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-09-03 18:51:33 +0300 |
commit | b481bb367c59d400a22bfd9bcf55005134bcaead (patch) | |
tree | 95cb0d05816d7e79b550227f0b20819df8ca75dd /server/TracyView.hpp | |
parent | 55a82ea7141360443c00e2823f4ef7c651dd24ee (diff) |
Switch plot drawing to the timeline items system.
Diffstat (limited to 'server/TracyView.hpp')
-rw-r--r-- | server/TracyView.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 3bc242e3..2ccf0836 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -114,6 +114,7 @@ public: ShortenName GetShortenName() const { return m_shortenName; } void ZoomToRange( int64_t start, int64_t end, bool pause = true ); + void DrawPlot( PlotData& plot, double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax ); bool m_showRanges = false; Range m_statRange; @@ -211,7 +212,6 @@ private: int SkipGpuZoneLevel( const V& vec, bool hover, double pxns, int64_t nspx, const ImVec2& wpos, int offset, int depth, uint64_t thread, float yMin, float yMax, int64_t begin, int drift ); void DrawLockHeader( uint32_t id, const LockMap& lockmap, const SourceLocation& srcloc, bool hover, ImDrawList* draw, const ImVec2& wpos, float w, float ty, float offset, uint8_t tid ); int DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos, int offset, LockHighlight& highlight, float yMin, float yMax ); - int DrawPlots( int offset, double pxns, const ImVec2& wpos, bool hover, float yMin, float yMax ); void DrawPlotPoint( const ImVec2& wpos, float x, float y, int offset, uint32_t color, bool hover, bool hasPrev, const PlotItem* item, double prev, bool merged, PlotType type, PlotValueFormatting format, float PlotHeight, uint64_t name ); void DrawPlotPoint( const ImVec2& wpos, float x, float y, int offset, uint32_t color, bool hover, bool hasPrev, double val, double prev, bool merged, PlotValueFormatting format, float PlotHeight ); int DrawCpuData( int offset, double pxns, const ImVec2& wpos, bool hover, float yMin, float yMax ); @@ -317,8 +317,6 @@ private: #endif std::vector<MemoryPage> GetMemoryPages() const; - const char* GetPlotName( const PlotData* plot ) const; - uint32_t GetPlotColor( const PlotData* plot ) const; void SmallCallstackButton( const char* name, uint32_t callstack, int& idx, bool tooltip = true ); void DrawCallstackCalls( uint32_t callstack, uint16_t limit ) const; |