VirtualBox

Changeset 93712 in vbox for trunk/include/iprt/cpp


Ignore:
Timestamp:
Feb 12, 2022 2:05:20 PM (3 years ago)
Author:
vboxsync
Message:

IPRT/hardavl: Basic statistics. bugref:10093

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/hardavlrange.h

    r93711 r93712  
    9090    /** The error count. */
    9191    uint32_t m_cErrors;
     92    /** @name Statistics
     93     * @{ */
     94    uint64_t m_cInserts;
     95    uint64_t m_cRemovals;
     96    uint64_t m_cRebalancingOperations;
     97    /** @}  */
    9298
    9399    /** The max stack depth. */
     
    226232        *pidxCurNode = idxNode;
    227233
     234        m_cInserts++;
    228235        return i_rebalance(a_pAllocator, &AVLStack);
    229236    }
     
    398405        *a_ppRemoved = pDeleteNode;
    399406
     407        m_cRemovals++;
    400408        return i_rebalance(a_pAllocator, &AVLStack);
    401409    }
     
    11761184#endif
    11771185                }
     1186                m_cRebalancingOperations++;
    11781187            }
    11791188            else if (cLeftHeight + 1 < cRightHeight)
     
    12321241#endif
    12331242                }
     1243                m_cRebalancingOperations++;
    12341244            }
    12351245            else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette