3 #ifndef __UNIT_PRINT_MSPRIORITYQUEUE_STAT_H
4 #define __UNIT_PRINT_MSPRIORITYQUEUE_STAT_H
6 #include <cds/container/mspriority_queue.h>
9 static inline ostream& operator <<( ostream& o, cds::container::mspriority_queue::empty_stat const& s )
14 static inline ostream& operator <<( ostream& o, cds::container::mspriority_queue::stat<> const& s )
16 return o << "\nMSPriorityQueue statistis [cds::container::mspriority_queue::stat]:\n"
17 << "\t\t Success push count: " << s.m_nPushCount.get() << "\n"
18 << "\t\t Success pop count: " << s.m_nPopCount.get() << "\n"
19 << "\t\tFailed push count (full queue): " << s.m_nPushFailCount.get() << "\n"
20 << "\t\tFailed pop count (empty queue): " << s.m_nPopFailCount.get() << "\n"
21 << "\t\t Heapify swap on push: " << s.m_nPushHeapifySwapCount.get() << "\n"
22 << "\t\t Heapify swap on pop: " << s.m_nPopHeapifySwapCount.get() << "\n";
26 #endif // #ifndef __UNIT_PRINT_MSPRIORITYQUEUE_STAT_H