diff options
author | Richard Linden <none@none> | 2013-01-24 01:18:49 -0800 |
---|---|---|
committer | Richard Linden <none@none> | 2013-01-24 01:18:49 -0800 |
commit | 096b2738c2213281b463d0de093c08a406f53946 (patch) | |
tree | 2c28c798ceb4479353e3646463789113f1e5b66a /indra/newview/llfasttimerview.h | |
parent | 28ab53d0cd1fb43a255990e90e0ad1ee78a566bb (diff) |
SH-3275 WIP interesting Update viewer metrics system to be more flexible
clean up LLFastTimerView so it can be converted to handling LLTrace data
Diffstat (limited to 'indra/newview/llfasttimerview.h')
-rw-r--r-- | indra/newview/llfasttimerview.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/indra/newview/llfasttimerview.h b/indra/newview/llfasttimerview.h index 07662bb795..09be137027 100644 --- a/indra/newview/llfasttimerview.h +++ b/indra/newview/llfasttimerview.h @@ -62,15 +62,28 @@ public: virtual BOOL handleScrollWheel(S32 x, S32 y, S32 clicks); virtual void draw(); + + LLTrace::TimeBlock* getLegendID(S32 y); F64 getTime(const std::string& name); protected: virtual void onClickCloseBtn(); + private: - typedef std::vector<std::vector<S32> > bar_positions_t; - bar_positions_t mBarStart; - bar_positions_t mBarEnd; + void drawTicks(LLUnit<LLUnits::Seconds, F64> total_time); + void drawLineGraph(); + void drawLegend(S32 y); + S32 drawHelp(S32 y); + void drawBorders( S32 y, const S32 x_start, S32 barh, S32 dy); + void drawBars(); + + void printLineStats(); + void generateUniqueColors(); + LLUnit<LLUnits::Seconds, F64> getTotalTime(); + + + std::vector<LLRect>* mBarRects; S32 mDisplayMode; typedef enum child_alignment |