Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-09-04 00:35:35 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-09-04 00:35:35 +0300
commitca125bd44c9f85580aee3d61d02b39904f37bb25 (patch)
tree620822ffa379275f5164a7645cd2d39af56ae863 /server/TracyTimelineItem.hpp
parentec3dcaeef38f0ec909e93626d4ff6dea0213be58 (diff)
Collapse Tracy threads by default.
Note that this will likely work only when loading existing traces. In live captures the thread name may not have yet been retrieved at the point when timeline item insertion occurs, which will prevent the check from succeeding.
Diffstat (limited to 'server/TracyTimelineItem.hpp')
-rw-r--r--server/TracyTimelineItem.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/TracyTimelineItem.hpp b/server/TracyTimelineItem.hpp
index 655bea06..48ad6c57 100644
--- a/server/TracyTimelineItem.hpp
+++ b/server/TracyTimelineItem.hpp
@@ -39,12 +39,13 @@ protected:
virtual bool IsEmpty() const { return false; }
+ bool m_visible;
+ bool m_showFull;
+
private:
void AdjustThreadHeight( bool firstFrame, int oldOffset, int& offset );
float AdjustThreadPosition( float wy, int& offset );
- bool m_visible;
- bool m_showFull;
int m_height;
int m_offset;