ser_profile.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef __SER_PROFILE
  2. #define __SER_PROFILE
  3. #ifdef SER
  4. #ifdef DO_PROFILING
  5. #include <cds/simple_profile.h>
  6. /* declarations of watched profile points */
  7. DECLARE_PROF_POINT(pa_handle_subscription)
  8. DECLARE_PROF_POINT(pa_timer_presentity)
  9. DECLARE_PROF_POINT(pa_timer_pdomain)
  10. DECLARE_PROF_POINT(pa_response_generation)
  11. DECLARE_PROF_POINT(rls_handle_subscription)
  12. DECLARE_PROF_POINT(rls_timer_cb)
  13. DECLARE_PROF_POINT(rls_is_simple_rls_target)
  14. DECLARE_PROF_POINT(rls_query_rls_sevices)
  15. DECLARE_PROF_POINT(rls_query_resource_list)
  16. DECLARE_PROF_POINT(rls_have_flat_list)
  17. DECLARE_PROF_POINT(tem_timer_cb)
  18. DECLARE_PROF_POINT(tem_add_event)
  19. DECLARE_PROF_POINT(tem_remove_event)
  20. DECLARE_PROF_POINT(tem_do_step)
  21. DECLARE_PROF_POINT(b2b_handle_notify)
  22. /* do NOT use directly this */
  23. void ser_profile_init();
  24. #define SER_PROFILE_INIT ser_profile_init();
  25. #else /* don't profile */
  26. #define SER_PROFILE_INIT
  27. #define PROF_START(name)
  28. #define PROF_START_BODY(name)
  29. #define PROF_START_DECL(name)
  30. #define PROF_STOP(name)
  31. #endif /* DO_PROFILING */
  32. #endif /* SER */
  33. #endif