1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Support call stacks longer than 255 entries.

This commit is contained in:
Bartosz Taudul
2020-03-28 18:04:33 +01:00
parent 9b8eb69886
commit 48e4d33bea
6 changed files with 51 additions and 29 deletions
+3 -3
View File
@@ -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;
};