From 8128b3894a1b230627b57417a8cd71e84f6da834 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 5 Nov 2019 01:27:30 +0100 Subject: [PATCH] Add vector debug macro. Natvis is lacking in functionality, so this has to do. --- server/TracyVector.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/TracyVector.hpp b/server/TracyVector.hpp index 7292fd82..81831038 100644 --- a/server/TracyVector.hpp +++ b/server/TracyVector.hpp @@ -13,6 +13,8 @@ #include "TracyShortPtr.hpp" #include "TracySlab.hpp" +//#define TRACY_VECTOR_DEBUG + namespace tracy { @@ -305,7 +307,11 @@ private: return 1 << m_capacity; } +#ifdef TRACY_VECTOR_DEBUG + T* m_ptr; +#else short_ptr m_ptr; +#endif uint32_t m_size; uint8_t m_capacity; };