ser_profile.h

00001 #ifndef __SER_PROFILE
00002 #define __SER_PROFILE
00003 
00004 #ifdef SER
00005 
00006 #ifdef DO_PROFILING
00007 
00008 #include <cds/simple_profile.h>
00009 
00010 /* declarations of watched profile points */
00011 
00012 DECLARE_PROF_POINT(pa_handle_subscription)
00013 DECLARE_PROF_POINT(pa_timer_presentity)
00014 DECLARE_PROF_POINT(pa_timer_pdomain)
00015 DECLARE_PROF_POINT(pa_response_generation)
00016         
00017 DECLARE_PROF_POINT(rls_handle_subscription)
00018 DECLARE_PROF_POINT(rls_timer_cb)
00019 DECLARE_PROF_POINT(rls_is_simple_rls_target)
00020 DECLARE_PROF_POINT(rls_query_rls_sevices)
00021 DECLARE_PROF_POINT(rls_query_resource_list)
00022 DECLARE_PROF_POINT(rls_have_flat_list)
00023 DECLARE_PROF_POINT(tem_timer_cb)
00024 DECLARE_PROF_POINT(tem_add_event)
00025 DECLARE_PROF_POINT(tem_remove_event)
00026 DECLARE_PROF_POINT(tem_do_step)
00027 
00028 DECLARE_PROF_POINT(b2b_handle_notify)
00029 
00030 /* do NOT use directly this */
00031 void ser_profile_init();
00032 
00033 #define SER_PROFILE_INIT        ser_profile_init();
00034 
00035 #else /* don't profile */
00036 
00037 #define SER_PROFILE_INIT
00038 #define PROF_START(name)
00039 #define PROF_START_BODY(name)
00040 #define PROF_START_DECL(name)
00041 #define PROF_STOP(name)
00042 
00043 #endif /* DO_PROFILING */
00044 
00045 #endif /* SER */
00046 
00047 
00048 #endif