1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Fix natvis display of exact reserved vector's capacity.

This commit is contained in:
Bartosz Taudul 2019-02-10 16:36:09 +01:00
parent 740486a0ce
commit 48c721c4b9

View File

@ -3,7 +3,7 @@
<Type Name="tracy::Vector&lt;*&gt;">
<DisplayString>{{ size={m_size} }}</DisplayString>
<Expand>
<Item Name="[capacity]" ExcludeView="simple">m_ptr == nullptr ? 0 : 1 &lt;&lt; m_capacity</Item>
<Item Name="[capacity]" ExcludeView="simple">m_capacity == 255 ? m_size : m_ptr == nullptr ? 0 : 1 &lt;&lt; m_capacity</Item>
<ArrayItems>
<Size>m_size</Size>
<ValuePointer>m_ptr</ValuePointer>