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.pld@gmail.com>2020-03-28 20:04:33 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2020-03-28 20:04:33 +0300
commit48e4d33bea1afd31dc1943719db6c7ff182f92f4 (patch)
tree9fb77c5ee3622d43ca851f8bc2427b74c23f5300 /server/TracyVarArray.hpp
parent9b8eb69886bfbc82ba73411f7442c7d27b9711c7 (diff)
Support call stacks longer than 255 entries.
Diffstat (limited to 'server/TracyVarArray.hpp')
-rw-r--r--server/TracyVarArray.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/TracyVarArray.hpp b/server/TracyVarArray.hpp
index 5fa54f5e..fb0b6f20 100644
--- a/server/TracyVarArray.hpp
+++ b/server/TracyVarArray.hpp
@@ -23,7 +23,7 @@ template<typename T>
class VarArray
{
public:
- VarArray( uint8_t size, const T* data )
+ VarArray( uint16_t size, const T* data )
: m_size( size )
, m_ptr( data )
{
@@ -39,7 +39,7 @@ public:
tracy_force_inline uint32_t get_hash() const { return m_hash; }
tracy_force_inline bool empty() const { return m_size == 0; }
- tracy_force_inline uint8_t size() const { return m_size; }
+ tracy_force_inline uint16_t size() const { return m_size; }
tracy_force_inline const T* data() const { return m_ptr; };
@@ -54,7 +54,7 @@ public:
private:
tracy_force_inline void CalcHash();
- uint8_t m_size;
+ uint16_t m_size;
uint32_t m_hash;
const short_ptr<T> m_ptr;
};