Added HP/DHP internal stats to test
[libcds.git] / test / include / cds_test / stress_test.h
index a739a4b4dc84c656f59f553de3019ac0d02f6e48..9e3053f0b1badb79542bbc3a2ada1c1e9573f34e 100644 (file)
@@ -172,6 +172,8 @@ namespace cds_test {
 
     class stress_fixture : public fixture
     {
+        typedef fixture base_class;
+
     protected:
         stress_fixture()
             : m_thread_pool( *this )
@@ -179,13 +181,18 @@ namespace cds_test {
 
         //static void SetUpTestCase();
         //static void TearDownTestCase();
+        void TearDown()
+        {
+            print_hp_stat();
+            base_class::TearDown();
+        }
 
         thread_pool& get_pool()
         {
             return m_thread_pool;
         }
 
-        static property_stream& propout();
+        static void print_hp_stat();
 
     public:
         static config const& get_config( char const * slot );
@@ -196,6 +203,8 @@ namespace cds_test {
         static void init_detail_level( int argc, char **argv );
         static bool check_detail_level( int nLevel );
 
+        static property_stream& propout();
+
     private:
         thread_pool     m_thread_pool;
     };