Natvis – limit numer of loaded items

Sysprogs forums Forums VisualGDB Natvis – limit numer of loaded items

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8354
    kbzowski
    Participant

    Hi,

    I was trying to write my own custom view for classes from numerical library which I am currently using. That class behave similar to std::vector so I create natvis xml according to your and MSDN documentation

    <?xml version=”1.0″ encoding=”utf-8″?>
    <AutoVisualizer xmlns=”http://schemas.microsoft.com/vstudio/debugger/natvis/2010″&gt;
    <Type Name=”dealii::Vector&lt;*&gt;”>
    <DisplayString>{{ size={vec_size} }}</DisplayString>
    <Expand>
    <Item Name=”[size]” ExcludeView=”simple”>vec_size</Item>
    <Item Name=”[capacity]” ExcludeView=”simple”>max_vec_size</Item>
    <ArrayItems>
    <Size>vec_size</Size>
    <ValuePointer>val</ValuePointer>
    </ArrayItems>
    </Expand>
    </Type>
    </AutoVisualizer>

    It works fine for small amount of items. But in case of 100 000 it takes few minutes to show anything. Moreover VS is frozen during that operation. Is there any option to get only part of available items or somehow <span id=”result_box” class=”short_text” lang=”en”><span class=””>accelerate</span></span> this?

    #8369
    support
    Keymaster

    Hi,

    Thanks, we’ll consider adding an option for that in v5.2.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.