Add vector debug macro.

Natvis is lacking in functionality, so this has to do.
This commit is contained in:
Bartosz Taudul 2019-11-05 01:27:30 +01:00
parent 946e328198
commit 8128b3894a

View File

@ -13,6 +13,8 @@
#include "TracyShortPtr.hpp" #include "TracyShortPtr.hpp"
#include "TracySlab.hpp" #include "TracySlab.hpp"
//#define TRACY_VECTOR_DEBUG
namespace tracy namespace tracy
{ {
@ -305,7 +307,11 @@ private:
return 1 << m_capacity; return 1 << m_capacity;
} }
#ifdef TRACY_VECTOR_DEBUG
T* m_ptr;
#else
short_ptr<T> m_ptr; short_ptr<T> m_ptr;
#endif
uint32_t m_size; uint32_t m_size;
uint8_t m_capacity; uint8_t m_capacity;
}; };