2 This file is a part of libcds - Concurrent Data Structures library
4 (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016
6 Source code repo: http://github.com/khizmax/libcds/
7 Download: http://sourceforge.net/projects/libcds/files/
9 Redistribution and use in source and binary forms, with or without
10 modification, are permitted provided that the following conditions are met:
12 * Redistributions of source code must retain the above copyright notice, this
13 list of conditions and the following disclaimer.
15 * Redistributions in binary form must reproduce the above copyright notice,
16 this list of conditions and the following disclaimer in the documentation
17 and/or other materials provided with the distribution.
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #ifndef CDSTEST_STAT_CUCKOO_OUT_H
32 #define CDSTEST_STAT_CUCKOO_OUT_H
34 #include <cds/intrusive/cuckoo_set.h>
38 static inline property_stream& operator <<( property_stream& o, cds::intrusive::cuckoo::striping_stat const& s )
41 << CDSSTRESS_STAT_OUT( s, m_nCellLockCount )
42 << CDSSTRESS_STAT_OUT( s, m_nCellLockCount )
43 << CDSSTRESS_STAT_OUT( s, m_nCellTryLockCount )
44 << CDSSTRESS_STAT_OUT( s, m_nFullLockCount )
45 << CDSSTRESS_STAT_OUT( s, m_nResizeLockCount )
46 << CDSSTRESS_STAT_OUT( s, m_nResizeCount );
49 static inline property_stream& operator <<( property_stream& o, cds::intrusive::cuckoo::empty_striping_stat const& /*s*/ )
54 static inline property_stream& operator <<( property_stream& o, cds::intrusive::cuckoo::refinable_stat const& s )
57 << CDSSTRESS_STAT_OUT( s, m_nCellLockCount )
58 << CDSSTRESS_STAT_OUT( s, m_nCellLockWaitResizing )
59 << CDSSTRESS_STAT_OUT( s, m_nCellLockArrayChanged )
60 << CDSSTRESS_STAT_OUT( s, m_nCellLockFailed )
61 << CDSSTRESS_STAT_OUT( s, m_nSecondCellLockCount )
62 << CDSSTRESS_STAT_OUT( s, m_nSecondCellLockFailed )
63 << CDSSTRESS_STAT_OUT( s, m_nFullLockCount )
64 << CDSSTRESS_STAT_OUT( s, m_nFullLockIter )
65 << CDSSTRESS_STAT_OUT( s, m_nResizeLockCount )
66 << CDSSTRESS_STAT_OUT( s, m_nResizeLockIter )
67 << CDSSTRESS_STAT_OUT( s, m_nResizeLockArrayChanged )
68 << CDSSTRESS_STAT_OUT( s, m_nResizeCount );
71 static inline property_stream& operator <<( property_stream& o, cds::intrusive::cuckoo::empty_refinable_stat const& /*s*/ )
76 static inline property_stream& operator <<( property_stream& o, cds::intrusive::cuckoo::stat const& s )
79 << CDSSTRESS_STAT_OUT( s, m_nRelocateCallCount )
80 << CDSSTRESS_STAT_OUT( s, m_nRelocateRoundCount )
81 << CDSSTRESS_STAT_OUT( s, m_nFalseRelocateCount )
82 << CDSSTRESS_STAT_OUT( s, m_nSuccessRelocateCount )
83 << CDSSTRESS_STAT_OUT( s, m_nRelocateAboveThresholdCount )
84 << CDSSTRESS_STAT_OUT( s, m_nFailedRelocateCount )
85 << CDSSTRESS_STAT_OUT( s, m_nResizeCallCount )
86 << CDSSTRESS_STAT_OUT( s, m_nFalseResizeCount )
87 << CDSSTRESS_STAT_OUT( s, m_nResizeSuccessNodeMove )
88 << CDSSTRESS_STAT_OUT( s, m_nResizeRelocateCall )
89 << CDSSTRESS_STAT_OUT( s, m_nInsertSuccess )
90 << CDSSTRESS_STAT_OUT( s, m_nInsertFailed )
91 << CDSSTRESS_STAT_OUT( s, m_nInsertResizeCount )
92 << CDSSTRESS_STAT_OUT( s, m_nInsertRelocateCount )
93 << CDSSTRESS_STAT_OUT( s, m_nInsertRelocateFault )
94 << CDSSTRESS_STAT_OUT( s, m_nUpdateExistCount )
95 << CDSSTRESS_STAT_OUT( s, m_nUpdateSuccessCount )
96 << CDSSTRESS_STAT_OUT( s, m_nUpdateResizeCount )
97 << CDSSTRESS_STAT_OUT( s, m_nUpdateRelocateCount )
98 << CDSSTRESS_STAT_OUT( s, m_nUpdateRelocateFault )
99 << CDSSTRESS_STAT_OUT( s, m_nUnlinkSuccess )
100 << CDSSTRESS_STAT_OUT( s, m_nUnlinkFailed )
101 << CDSSTRESS_STAT_OUT( s, m_nEraseSuccess )
102 << CDSSTRESS_STAT_OUT( s, m_nEraseFailed )
103 << CDSSTRESS_STAT_OUT( s, m_nFindSuccess )
104 << CDSSTRESS_STAT_OUT( s, m_nFindFailed )
105 << CDSSTRESS_STAT_OUT( s, m_nFindWithSuccess )
106 << CDSSTRESS_STAT_OUT( s, m_nFindWithFailed );
109 static inline property_stream& operator <<( property_stream& o, cds::intrusive::cuckoo::empty_stat const& /*s*/ )
114 } // namespace cds_test
116 #endif // #ifndef CDSTEST_STAT_CUCKOO_OUT_H